home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / file / fileutil.13 / fileutil / fileutils-3.13 / configure < prev    next >
Encoding:
Text File  |  1996-07-12  |  148.2 KB  |  5,775 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.10 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --enable-maintainer-mode enable make rules and dependencies not useful
  16.                           (and sometimes confusing) to the casual installer"
  17. ac_help="$ac_help
  18.   --disable-nls           do not use Native Language Support"
  19. ac_help="$ac_help
  20.   --with-included-gettext use the GNU gettext library included here"
  21. ac_help="$ac_help
  22.   --with-catgets          use catgets functions if available"
  23.  
  24. # Initialize some variables set by options.
  25. # The variables have the same names as the options, with
  26. # dashes changed to underlines.
  27. build=NONE
  28. cache_file=./config.cache
  29. exec_prefix=NONE
  30. host=NONE
  31. no_create=
  32. nonopt=NONE
  33. no_recursion=
  34. prefix=NONE
  35. program_prefix=NONE
  36. program_suffix=NONE
  37. program_transform_name=s,x,x,
  38. silent=
  39. site=
  40. srcdir=
  41. target=NONE
  42. verbose=
  43. x_includes=NONE
  44. x_libraries=NONE
  45. bindir='${exec_prefix}/bin'
  46. sbindir='${exec_prefix}/sbin'
  47. libexecdir='${exec_prefix}/libexec'
  48. datadir='${prefix}/share'
  49. sysconfdir='${prefix}/etc'
  50. sharedstatedir='${prefix}/com'
  51. localstatedir='${prefix}/var'
  52. libdir='${exec_prefix}/lib'
  53. includedir='${prefix}/include'
  54. oldincludedir='/usr/include'
  55. infodir='${prefix}/info'
  56. mandir='${prefix}/man'
  57.  
  58. # Initialize some other variables.
  59. subdirs=
  60. MFLAGS= MAKEFLAGS=
  61.  
  62. ac_prev=
  63. for ac_option
  64. do
  65.  
  66.   # If the previous option needs an argument, assign it.
  67.   if test -n "$ac_prev"; then
  68.     eval "$ac_prev=\$ac_option"
  69.     ac_prev=
  70.     continue
  71.   fi
  72.  
  73.   case "$ac_option" in
  74.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  75.   *) ac_optarg= ;;
  76.   esac
  77.  
  78.   # Accept the important Cygnus configure options, so we can diagnose typos.
  79.  
  80.   case "$ac_option" in
  81.  
  82.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  83.     ac_prev=bindir ;;
  84.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  85.     bindir="$ac_optarg" ;;
  86.  
  87.   -build | --build | --buil | --bui | --bu)
  88.     ac_prev=build ;;
  89.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  90.     build="$ac_optarg" ;;
  91.  
  92.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  93.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  94.     ac_prev=cache_file ;;
  95.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  96.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  97.     cache_file="$ac_optarg" ;;
  98.  
  99.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  100.     ac_prev=datadir ;;
  101.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  102.   | --da=*)
  103.     datadir="$ac_optarg" ;;
  104.  
  105.   -disable-* | --disable-*)
  106.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  107.     # Reject names that are not valid shell variable names.
  108.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  109.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  110.     fi
  111.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  112.     eval "enable_${ac_feature}=no" ;;
  113.  
  114.   -enable-* | --enable-*)
  115.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  116.     # Reject names that are not valid shell variable names.
  117.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  118.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  119.     fi
  120.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  121.     case "$ac_option" in
  122.       *=*) ;;
  123.       *) ac_optarg=yes ;;
  124.     esac
  125.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  126.  
  127.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  128.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  129.   | --exec | --exe | --ex)
  130.     ac_prev=exec_prefix ;;
  131.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  132.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  133.   | --exec=* | --exe=* | --ex=*)
  134.     exec_prefix="$ac_optarg" ;;
  135.  
  136.   -gas | --gas | --ga | --g)
  137.     # Obsolete; use --with-gas.
  138.     with_gas=yes ;;
  139.  
  140.   -help | --help | --hel | --he)
  141.     # Omit some internal or obsolete options to make the list less imposing.
  142.     # This message is too long to be a string in the A/UX 3.1 sh.
  143.     cat << EOF
  144. Usage: configure [options] [host]
  145. Options: [defaults in brackets after descriptions]
  146. Configuration:
  147.   --cache-file=FILE       cache test results in FILE
  148.   --help                  print this message
  149.   --no-create             do not create output files
  150.   --quiet, --silent       do not print \`checking...' messages
  151.   --version               print the version of autoconf that created configure
  152. Directory and file names:
  153.   --prefix=PREFIX         install architecture-independent files in PREFIX
  154.                           [$ac_default_prefix]
  155.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  156.                           [same as prefix]
  157.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  158.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  159.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  160.   --datadir=DIR           read-only architecture-independent data in DIR
  161.                           [PREFIX/share]
  162.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  163.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  164.                           [PREFIX/com]
  165.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  166.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  167.   --includedir=DIR        C header files in DIR [PREFIX/include]
  168.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  169.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  170.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  171.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  172.   --program-prefix=PREFIX prepend PREFIX to installed program names
  173.   --program-suffix=SUFFIX append SUFFIX to installed program names
  174.   --program-transform-name=PROGRAM
  175.                           run sed PROGRAM on installed program names
  176. EOF
  177.     cat << EOF
  178. Host type:
  179.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  180.   --host=HOST             configure for HOST [guessed]
  181.   --target=TARGET         configure for TARGET [TARGET=HOST]
  182. Features and packages:
  183.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  184.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  185.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  186.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  187.   --x-includes=DIR        X include files are in DIR
  188.   --x-libraries=DIR       X library files are in DIR
  189. EOF
  190.     if test -n "$ac_help"; then
  191.       echo "--enable and --with options recognized:$ac_help"
  192.     fi
  193.     exit 0 ;;
  194.  
  195.   -host | --host | --hos | --ho)
  196.     ac_prev=host ;;
  197.   -host=* | --host=* | --hos=* | --ho=*)
  198.     host="$ac_optarg" ;;
  199.  
  200.   -includedir | --includedir | --includedi | --included | --include \
  201.   | --includ | --inclu | --incl | --inc)
  202.     ac_prev=includedir ;;
  203.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  204.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  205.     includedir="$ac_optarg" ;;
  206.  
  207.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  208.     ac_prev=infodir ;;
  209.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  210.     infodir="$ac_optarg" ;;
  211.  
  212.   -libdir | --libdir | --libdi | --libd)
  213.     ac_prev=libdir ;;
  214.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  215.     libdir="$ac_optarg" ;;
  216.  
  217.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  218.   | --libexe | --libex | --libe)
  219.     ac_prev=libexecdir ;;
  220.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  221.   | --libexe=* | --libex=* | --libe=*)
  222.     libexecdir="$ac_optarg" ;;
  223.  
  224.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  225.   | --localstate | --localstat | --localsta | --localst \
  226.   | --locals | --local | --loca | --loc | --lo)
  227.     ac_prev=localstatedir ;;
  228.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  229.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  230.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  231.     localstatedir="$ac_optarg" ;;
  232.  
  233.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  234.     ac_prev=mandir ;;
  235.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  236.     mandir="$ac_optarg" ;;
  237.  
  238.   -nfp | --nfp | --nf)
  239.     # Obsolete; use --without-fp.
  240.     with_fp=no ;;
  241.  
  242.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  243.   | --no-cr | --no-c)
  244.     no_create=yes ;;
  245.  
  246.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  247.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  248.     no_recursion=yes ;;
  249.  
  250.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  251.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  252.   | --oldin | --oldi | --old | --ol | --o)
  253.     ac_prev=oldincludedir ;;
  254.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  255.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  256.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  257.     oldincludedir="$ac_optarg" ;;
  258.  
  259.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  260.     ac_prev=prefix ;;
  261.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  262.     prefix="$ac_optarg" ;;
  263.  
  264.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  265.   | --program-pre | --program-pr | --program-p)
  266.     ac_prev=program_prefix ;;
  267.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  268.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  269.     program_prefix="$ac_optarg" ;;
  270.  
  271.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  272.   | --program-suf | --program-su | --program-s)
  273.     ac_prev=program_suffix ;;
  274.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  275.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  276.     program_suffix="$ac_optarg" ;;
  277.  
  278.   -program-transform-name | --program-transform-name \
  279.   | --program-transform-nam | --program-transform-na \
  280.   | --program-transform-n | --program-transform- \
  281.   | --program-transform | --program-transfor \
  282.   | --program-transfo | --program-transf \
  283.   | --program-trans | --program-tran \
  284.   | --progr-tra | --program-tr | --program-t)
  285.     ac_prev=program_transform_name ;;
  286.   -program-transform-name=* | --program-transform-name=* \
  287.   | --program-transform-nam=* | --program-transform-na=* \
  288.   | --program-transform-n=* | --program-transform-=* \
  289.   | --program-transform=* | --program-transfor=* \
  290.   | --program-transfo=* | --program-transf=* \
  291.   | --program-trans=* | --program-tran=* \
  292.   | --progr-tra=* | --program-tr=* | --program-t=*)
  293.     program_transform_name="$ac_optarg" ;;
  294.  
  295.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  296.   | -silent | --silent | --silen | --sile | --sil)
  297.     silent=yes ;;
  298.  
  299.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  300.     ac_prev=sbindir ;;
  301.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  302.   | --sbi=* | --sb=*)
  303.     sbindir="$ac_optarg" ;;
  304.  
  305.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  306.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  307.   | --sharedst | --shareds | --shared | --share | --shar \
  308.   | --sha | --sh)
  309.     ac_prev=sharedstatedir ;;
  310.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  311.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  312.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  313.   | --sha=* | --sh=*)
  314.     sharedstatedir="$ac_optarg" ;;
  315.  
  316.   -site | --site | --sit)
  317.     ac_prev=site ;;
  318.   -site=* | --site=* | --sit=*)
  319.     site="$ac_optarg" ;;
  320.  
  321.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  322.     ac_prev=srcdir ;;
  323.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  324.     srcdir="$ac_optarg" ;;
  325.  
  326.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  327.   | --syscon | --sysco | --sysc | --sys | --sy)
  328.     ac_prev=sysconfdir ;;
  329.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  330.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  331.     sysconfdir="$ac_optarg" ;;
  332.  
  333.   -target | --target | --targe | --targ | --tar | --ta | --t)
  334.     ac_prev=target ;;
  335.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  336.     target="$ac_optarg" ;;
  337.  
  338.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  339.     verbose=yes ;;
  340.  
  341.   -version | --version | --versio | --versi | --vers)
  342.     echo "configure generated by autoconf version 2.10"
  343.     exit 0 ;;
  344.  
  345.   -with-* | --with-*)
  346.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  347.     # Reject names that are not valid shell variable names.
  348.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  349.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  350.     fi
  351.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  352.     case "$ac_option" in
  353.       *=*) ;;
  354.       *) ac_optarg=yes ;;
  355.     esac
  356.     eval "with_${ac_package}='$ac_optarg'" ;;
  357.  
  358.   -without-* | --without-*)
  359.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  360.     # Reject names that are not valid shell variable names.
  361.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  362.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  363.     fi
  364.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  365.     eval "with_${ac_package}=no" ;;
  366.  
  367.   --x)
  368.     # Obsolete; use --with-x.
  369.     with_x=yes ;;
  370.  
  371.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  372.   | --x-incl | --x-inc | --x-in | --x-i)
  373.     ac_prev=x_includes ;;
  374.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  375.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  376.     x_includes="$ac_optarg" ;;
  377.  
  378.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  379.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  380.     ac_prev=x_libraries ;;
  381.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  382.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  383.     x_libraries="$ac_optarg" ;;
  384.  
  385.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  386.     ;;
  387.  
  388.   *)
  389.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  390.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  391.     fi
  392.     if test "x$nonopt" != xNONE; then
  393.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  394.     fi
  395.     nonopt="$ac_option"
  396.     ;;
  397.  
  398.   esac
  399. done
  400.  
  401. if test -n "$ac_prev"; then
  402.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  403. fi
  404.  
  405. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  406.  
  407. # File descriptor usage:
  408. # 0 standard input
  409. # 1 file creation
  410. # 2 errors and warnings
  411. # 3 some systems may open it to /dev/tty
  412. # 4 used on the Kubota Titan
  413. # 6 checking for... messages and results
  414. # 5 compiler messages saved in config.log
  415. if test "$silent" = yes; then
  416.   exec 6>/dev/null
  417. else
  418.   exec 6>&1
  419. fi
  420. exec 5>./config.log
  421.  
  422. echo "\
  423. This file contains any messages produced by compilers while
  424. running configure, to aid debugging if configure makes a mistake.
  425. " 1>&5
  426.  
  427. # Strip out --no-create and --no-recursion so they do not pile up.
  428. # Also quote any args containing shell metacharacters.
  429. ac_configure_args=
  430. for ac_arg
  431. do
  432.   case "$ac_arg" in
  433.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  434.   | --no-cr | --no-c) ;;
  435.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  436.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  437.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  438.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  439.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  440.   esac
  441. done
  442.  
  443. # NLS nuisances.
  444. # Only set LANG and LC_ALL to C if already set.
  445. # These must not be set unconditionally because not all systems understand
  446. # e.g. LANG=C (notably SCO).
  447. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  448. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  449.  
  450. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  451. rm -rf conftest* confdefs.h
  452. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  453. echo > confdefs.h
  454.  
  455. # A filename unique to this package, relative to the directory that
  456. # configure is in, which we can look for to find out if srcdir is correct.
  457. ac_unique_file=src/ls.c
  458.  
  459. # Find the source files, if location was not specified.
  460. if test -z "$srcdir"; then
  461.   ac_srcdir_defaulted=yes
  462.   # Try the directory containing this script, then its parent.
  463.   ac_prog=$0
  464.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  465.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  466.   srcdir=$ac_confdir
  467.   if test ! -r $srcdir/$ac_unique_file; then
  468.     srcdir=..
  469.   fi
  470. else
  471.   ac_srcdir_defaulted=no
  472. fi
  473. if test ! -r $srcdir/$ac_unique_file; then
  474.   if test "$ac_srcdir_defaulted" = yes; then
  475.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  476.   else
  477.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  478.   fi
  479. fi
  480. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  481.  
  482. # Prefer explicitly selected file to automatically selected ones.
  483. if test -z "$CONFIG_SITE"; then
  484.   if test "x$prefix" != xNONE; then
  485.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  486.   else
  487.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  488.   fi
  489. fi
  490. for ac_site_file in $CONFIG_SITE; do
  491.   if test -r "$ac_site_file"; then
  492.     echo "loading site script $ac_site_file"
  493.     . "$ac_site_file"
  494.   fi
  495. done
  496.  
  497. if test -r "$cache_file"; then
  498.   echo "loading cache $cache_file"
  499.   . $cache_file
  500. else
  501.   echo "creating cache $cache_file"
  502.   > $cache_file
  503. fi
  504.  
  505. ac_ext=c
  506. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  507. ac_cpp='$CPP $CPPFLAGS'
  508. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  509. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  510.  
  511. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  512.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  513.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  514.     ac_n= ac_c='
  515. ' ac_t='    '
  516.   else
  517.     ac_n=-n ac_c= ac_t=
  518.   fi
  519. else
  520.   ac_n= ac_c='\c' ac_t=
  521. fi
  522.  
  523.  
  524.  
  525. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  526. set dummy ${MAKE-make}; ac_make=$2
  527. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  528.   echo $ac_n "(cached) $ac_c" 1>&6
  529. else
  530.   cat > conftestmake <<\EOF
  531. all:
  532.     @echo 'ac_maketemp="${MAKE}"'
  533. EOF
  534. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  535. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  536. if test -n "$ac_maketemp"; then
  537.   eval ac_cv_prog_make_${ac_make}_set=yes
  538. else
  539.   eval ac_cv_prog_make_${ac_make}_set=no
  540. fi
  541. rm -f conftestmake
  542. fi
  543. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  544.   echo "$ac_t""yes" 1>&6
  545.   SET_MAKE=
  546. else
  547.   echo "$ac_t""no" 1>&6
  548.   SET_MAKE="MAKE=${MAKE-make}"
  549. fi
  550.  
  551. if test "$program_transform_name" = s,x,x,; then
  552.   program_transform_name=
  553. else
  554.   # Double any \ or $.  echo might interpret backslashes.
  555.   cat <<\EOF_SED > conftestsed
  556. s,\\,\\\\,g; s,\$,$$,g
  557. EOF_SED
  558.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  559.   rm -f conftestsed
  560. fi
  561. test "$program_prefix" != NONE &&
  562.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  563. # Use a double $ so make ignores it.
  564. test "$program_suffix" != NONE &&
  565.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  566.  
  567. # sed with no file args requires a program.
  568. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  569.  
  570.  
  571. PACKAGE=fileutils
  572. VERSION=3.13
  573. PACKAGE_VERSION="GNU $PACKAGE-$VERSION"
  574. cat >> confdefs.h <<EOF
  575. #define PACKAGE "$PACKAGE"
  576. EOF
  577.  
  578. cat >> confdefs.h <<EOF
  579. #define VERSION "$VERSION"
  580. EOF
  581.  
  582. cat >> confdefs.h <<EOF
  583. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  584. EOF
  585.  
  586.  
  587.  
  588.  
  589.  
  590. echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
  591.     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  592. if test "${enable_maintainer_mode+set}" = set; then
  593.   enableval="$enable_maintainer_mode"
  594.   USE_MAINTAINER_MODE=$enableval
  595. else
  596.   USE_MAINTAINER_MODE=no
  597. fi
  598.  
  599.   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
  600.   if test $USE_MAINTAINER_MODE = yes; then
  601.     MAINT=
  602.   else
  603.     MAINT='#M#'
  604.   fi
  605.   
  606.  
  607.  
  608. ALL_LINGUAS="de fr pt sv"
  609.  
  610.  
  611.  
  612.  
  613.  
  614. case $VERSION in
  615.   *[a-z]) README_ALPHA=README-alpha;;
  616.   *) README_ALPHA=;;
  617. esac
  618.  
  619.  
  620.  
  621. # Extract the first word of "ln", so it can be a program name with args.
  622. set dummy ln; ac_word=$2
  623. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  624. if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
  625.   echo $ac_n "(cached) $ac_c" 1>&6
  626. else
  627.   case "$LN" in
  628.   /*)
  629.   ac_cv_path_LN="$LN" # Let the user override the test with a path.
  630.   ;;
  631.   *)
  632.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  633.   for ac_dir in $PATH; do
  634.     test -z "$ac_dir" && ac_dir=.
  635.     if test -f $ac_dir/$ac_word; then
  636.       ac_cv_path_LN="$ac_dir/$ac_word"
  637.       break
  638.     fi
  639.   done
  640.   IFS="$ac_save_ifs"
  641.   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
  642.   ;;
  643. esac
  644. fi
  645. LN="$ac_cv_path_LN"
  646. if test -n "$LN"; then
  647.   echo "$ac_t""$LN" 1>&6
  648. else
  649.   echo "$ac_t""no" 1>&6
  650. fi
  651.  
  652. # Extract the first word of "mv", so it can be a program name with args.
  653. set dummy mv; ac_word=$2
  654. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  655. if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
  656.   echo $ac_n "(cached) $ac_c" 1>&6
  657. else
  658.   case "$MV" in
  659.   /*)
  660.   ac_cv_path_MV="$MV" # Let the user override the test with a path.
  661.   ;;
  662.   *)
  663.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  664.   for ac_dir in $PATH; do
  665.     test -z "$ac_dir" && ac_dir=.
  666.     if test -f $ac_dir/$ac_word; then
  667.       ac_cv_path_MV="$ac_dir/$ac_word"
  668.       break
  669.     fi
  670.   done
  671.   IFS="$ac_save_ifs"
  672.   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
  673.   ;;
  674. esac
  675. fi
  676. MV="$ac_cv_path_MV"
  677. if test -n "$MV"; then
  678.   echo "$ac_t""$MV" 1>&6
  679. else
  680.   echo "$ac_t""no" 1>&6
  681. fi
  682.  
  683. # Extract the first word of "rm", so it can be a program name with args.
  684. set dummy rm; ac_word=$2
  685. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  686. if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
  687.   echo $ac_n "(cached) $ac_c" 1>&6
  688. else
  689.   case "$RM" in
  690.   /*)
  691.   ac_cv_path_RM="$RM" # Let the user override the test with a path.
  692.   ;;
  693.   *)
  694.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  695.   for ac_dir in $PATH; do
  696.     test -z "$ac_dir" && ac_dir=.
  697.     if test -f $ac_dir/$ac_word; then
  698.       ac_cv_path_RM="$ac_dir/$ac_word"
  699.       break
  700.     fi
  701.   done
  702.   IFS="$ac_save_ifs"
  703.   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
  704.   ;;
  705. esac
  706. fi
  707. RM="$ac_cv_path_RM"
  708. if test -n "$RM"; then
  709.   echo "$ac_t""$RM" 1>&6
  710. else
  711.   echo "$ac_t""no" 1>&6
  712. fi
  713.  
  714. # Extract the first word of "perl", so it can be a program name with args.
  715. set dummy perl; ac_word=$2
  716. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  717. if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
  718.   echo $ac_n "(cached) $ac_c" 1>&6
  719. else
  720.   case "$PERL" in
  721.   /*)
  722.   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  723.   ;;
  724.   *)
  725.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  726.   for ac_dir in $PATH; do
  727.     test -z "$ac_dir" && ac_dir=.
  728.     if test -f $ac_dir/$ac_word; then
  729.       ac_cv_path_PERL="$ac_dir/$ac_word"
  730.       break
  731.     fi
  732.   done
  733.   IFS="$ac_save_ifs"
  734.   ;;
  735. esac
  736. fi
  737. PERL="$ac_cv_path_PERL"
  738. if test -n "$PERL"; then
  739.   echo "$ac_t""$PERL" 1>&6
  740. else
  741.   echo "$ac_t""no" 1>&6
  742. fi
  743.  
  744. # Extract the first word of "gcc", so it can be a program name with args.
  745. set dummy gcc; ac_word=$2
  746. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  747. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  748.   echo $ac_n "(cached) $ac_c" 1>&6
  749. else
  750.   if test -n "$CC"; then
  751.   ac_cv_prog_CC="$CC" # Let the user override the test.
  752. else
  753.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  754.   for ac_dir in $PATH; do
  755.     test -z "$ac_dir" && ac_dir=.
  756.     if test -f $ac_dir/$ac_word; then
  757.       ac_cv_prog_CC="gcc"
  758.       break
  759.     fi
  760.   done
  761.   IFS="$ac_save_ifs"
  762. fi
  763. fi
  764. CC="$ac_cv_prog_CC"
  765. if test -n "$CC"; then
  766.   echo "$ac_t""$CC" 1>&6
  767. else
  768.   echo "$ac_t""no" 1>&6
  769. fi
  770.  
  771. if test -z "$CC"; then
  772.   # Extract the first word of "cc", so it can be a program name with args.
  773. set dummy cc; ac_word=$2
  774. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  775. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  776.   echo $ac_n "(cached) $ac_c" 1>&6
  777. else
  778.   if test -n "$CC"; then
  779.   ac_cv_prog_CC="$CC" # Let the user override the test.
  780. else
  781.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  782.   ac_prog_rejected=no
  783.   for ac_dir in $PATH; do
  784.     test -z "$ac_dir" && ac_dir=.
  785.     if test -f $ac_dir/$ac_word; then
  786.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  787.         ac_prog_rejected=yes
  788.     continue
  789.       fi
  790.       ac_cv_prog_CC="cc"
  791.       break
  792.     fi
  793.   done
  794.   IFS="$ac_save_ifs"
  795. if test $ac_prog_rejected = yes; then
  796.   # We found a bogon in the path, so make sure we never use it.
  797.   set dummy $ac_cv_prog_CC
  798.   shift
  799.   if test $# -gt 0; then
  800.     # We chose a different compiler from the bogus one.
  801.     # However, it has the same basename, so the bogon will be chosen
  802.     # first if we set CC to just the basename; use the full file name.
  803.     shift
  804.     set dummy "$ac_dir/$ac_word" "$@"
  805.     shift
  806.     ac_cv_prog_CC="$@"
  807.   fi
  808. fi
  809. fi
  810. fi
  811. CC="$ac_cv_prog_CC"
  812. if test -n "$CC"; then
  813.   echo "$ac_t""$CC" 1>&6
  814. else
  815.   echo "$ac_t""no" 1>&6
  816. fi
  817.  
  818.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  819. fi
  820.  
  821. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  822. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  823.   echo $ac_n "(cached) $ac_c" 1>&6
  824. else
  825.   cat > conftest.c <<EOF
  826. #ifdef __GNUC__
  827.   yes;
  828. #endif
  829. EOF
  830. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  831.   ac_cv_prog_gcc=yes
  832. else
  833.   ac_cv_prog_gcc=no
  834. fi
  835. fi
  836.  
  837. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  838. if test $ac_cv_prog_gcc = yes; then
  839.   GCC=yes
  840.   if test "${CFLAGS+set}" != set; then
  841.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  842. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  843.   echo $ac_n "(cached) $ac_c" 1>&6
  844. else
  845.   echo 'void f(){}' > conftest.c
  846. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  847.   ac_cv_prog_gcc_g=yes
  848. else
  849.   ac_cv_prog_gcc_g=no
  850. fi
  851. rm -f conftest*
  852.  
  853. fi
  854.  
  855. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  856.     if test $ac_cv_prog_gcc_g = yes; then
  857.       CFLAGS="-g -O"
  858.     else
  859.       CFLAGS="-O"
  860.     fi
  861.   fi
  862. else
  863.   GCC=
  864.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  865. fi
  866.  
  867. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  868. # On Suns, sometimes $CPP names a directory.
  869. if test -n "$CPP" && test -d "$CPP"; then
  870.   CPP=
  871. fi
  872. if test -z "$CPP"; then
  873. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  874.   echo $ac_n "(cached) $ac_c" 1>&6
  875. else
  876.     # This must be in double quotes, not single quotes, because CPP may get
  877.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  878.   CPP="${CC-cc} -E"
  879.   # On the NeXT, cc -E runs the code through the compiler's parser,
  880.   # not just through cpp.
  881.   cat > conftest.$ac_ext <<EOF
  882. #line 883 "configure"
  883. #include "confdefs.h"
  884. #include <assert.h>
  885. Syntax Error
  886. EOF
  887. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  888. { (eval echo configure:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  889. ac_err=`grep -v '^ *+' conftest.out`
  890. if test -z "$ac_err"; then
  891.   :
  892. else
  893.   echo "$ac_err" >&5
  894.   rm -rf conftest*
  895.   CPP="${CC-cc} -E -traditional-cpp"
  896.   cat > conftest.$ac_ext <<EOF
  897. #line 898 "configure"
  898. #include "confdefs.h"
  899. #include <assert.h>
  900. Syntax Error
  901. EOF
  902. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  903. { (eval echo configure:904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  904. ac_err=`grep -v '^ *+' conftest.out`
  905. if test -z "$ac_err"; then
  906.   :
  907. else
  908.   echo "$ac_err" >&5
  909.   rm -rf conftest*
  910.   CPP=/lib/cpp
  911. fi
  912. rm -f conftest*
  913. fi
  914. rm -f conftest*
  915.   ac_cv_prog_CPP="$CPP"
  916. fi
  917.   CPP="$ac_cv_prog_CPP"
  918. else
  919.   ac_cv_prog_CPP="$CPP"
  920. fi
  921. echo "$ac_t""$CPP" 1>&6
  922.  
  923. if test $ac_cv_prog_gcc = yes; then
  924.     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  925. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  926.   echo $ac_n "(cached) $ac_c" 1>&6
  927. else
  928.     ac_pattern="Autoconf.*'x'"
  929.   cat > conftest.$ac_ext <<EOF
  930. #line 931 "configure"
  931. #include "confdefs.h"
  932. #include <sgtty.h>
  933. Autoconf TIOCGETP
  934. EOF
  935. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  936.   egrep "$ac_pattern" >/dev/null 2>&1; then
  937.   rm -rf conftest*
  938.   ac_cv_prog_gcc_traditional=yes
  939. else
  940.   rm -rf conftest*
  941.   ac_cv_prog_gcc_traditional=no
  942. fi
  943. rm -f conftest*
  944.  
  945.  
  946.   if test $ac_cv_prog_gcc_traditional = no; then
  947.     cat > conftest.$ac_ext <<EOF
  948. #line 949 "configure"
  949. #include "confdefs.h"
  950. #include <termio.h>
  951. Autoconf TCGETA
  952. EOF
  953. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  954.   egrep "$ac_pattern" >/dev/null 2>&1; then
  955.   rm -rf conftest*
  956.   ac_cv_prog_gcc_traditional=yes
  957. fi
  958. rm -f conftest*
  959.  
  960.   fi
  961. fi
  962.  
  963. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  964.   if test $ac_cv_prog_gcc_traditional = yes; then
  965.     CC="$CC -traditional"
  966.   fi
  967. fi
  968.  
  969. ac_aux_dir=
  970. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  971.   if test -f $ac_dir/install-sh; then
  972.     ac_aux_dir=$ac_dir
  973.     ac_install_sh="$ac_aux_dir/install-sh -c"
  974.     break
  975.   elif test -f $ac_dir/install.sh; then
  976.     ac_aux_dir=$ac_dir
  977.     ac_install_sh="$ac_aux_dir/install.sh -c"
  978.     break
  979.   fi
  980. done
  981. if test -z "$ac_aux_dir"; then
  982.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  983. fi
  984. ac_config_guess=$ac_aux_dir/config.guess
  985. ac_config_sub=$ac_aux_dir/config.sub
  986. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  987.  
  988. # Find a good install program.  We prefer a C program (faster),
  989. # so one script is as good as another.  But avoid the broken or
  990. # incompatible versions:
  991. # SysV /etc/install, /usr/sbin/install
  992. # SunOS /usr/etc/install
  993. # IRIX /sbin/install
  994. # AIX /bin/install
  995. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  996. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  997. # ./install, which can be erroneously created by make from ./install.sh.
  998. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  999. if test -z "$INSTALL"; then
  1000. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1001.   echo $ac_n "(cached) $ac_c" 1>&6
  1002. else
  1003.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1004.   for ac_dir in $PATH; do
  1005.     # Account for people who put trailing slashes in PATH elements.
  1006.     case "$ac_dir/" in
  1007.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1008.     *)
  1009.       # OSF1 and SCO ODT 3.0 have their own names for install.
  1010.       for ac_prog in ginstall installbsd scoinst install; do
  1011.         if test -f $ac_dir/$ac_prog; then
  1012.       if test $ac_prog = install &&
  1013.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1014.         # AIX install.  It has an incompatible calling convention.
  1015.         # OSF/1 installbsd also uses dspmsg, but is usable.
  1016.         :
  1017.       else
  1018.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  1019.         break 2
  1020.       fi
  1021.     fi
  1022.       done
  1023.       ;;
  1024.     esac
  1025.   done
  1026.   IFS="$ac_save_ifs"
  1027.  
  1028. fi
  1029.   if test "${ac_cv_path_install+set}" = set; then
  1030.     INSTALL="$ac_cv_path_install"
  1031.   else
  1032.     # As a last resort, use the slow shell script.  We don't cache a
  1033.     # path for INSTALL within a source directory, because that will
  1034.     # break other packages using the cache if that directory is
  1035.     # removed, or if the path is relative.
  1036.     INSTALL="$ac_install_sh"
  1037.   fi
  1038. fi
  1039. echo "$ac_t""$INSTALL" 1>&6
  1040.  
  1041. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1042. # It thinks the first close brace ends the variable substitution.
  1043. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1044.  
  1045. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1046.  
  1047. # Extract the first word of "ranlib", so it can be a program name with args.
  1048. set dummy ranlib; ac_word=$2
  1049. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1050. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1051.   echo $ac_n "(cached) $ac_c" 1>&6
  1052. else
  1053.   if test -n "$RANLIB"; then
  1054.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1055. else
  1056.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1057.   for ac_dir in $PATH; do
  1058.     test -z "$ac_dir" && ac_dir=.
  1059.     if test -f $ac_dir/$ac_word; then
  1060.       ac_cv_prog_RANLIB="ranlib"
  1061.       break
  1062.     fi
  1063.   done
  1064.   IFS="$ac_save_ifs"
  1065.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1066. fi
  1067. fi
  1068. RANLIB="$ac_cv_prog_RANLIB"
  1069. if test -n "$RANLIB"; then
  1070.   echo "$ac_t""$RANLIB" 1>&6
  1071. else
  1072.   echo "$ac_t""no" 1>&6
  1073. fi
  1074.  
  1075. for ac_prog in 'bison -y' byacc
  1076. do
  1077. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1078. set dummy $ac_prog; ac_word=$2
  1079. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1080. if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  1081.   echo $ac_n "(cached) $ac_c" 1>&6
  1082. else
  1083.   if test -n "$YACC"; then
  1084.   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  1085. else
  1086.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1087.   for ac_dir in $PATH; do
  1088.     test -z "$ac_dir" && ac_dir=.
  1089.     if test -f $ac_dir/$ac_word; then
  1090.       ac_cv_prog_YACC="$ac_prog"
  1091.       break
  1092.     fi
  1093.   done
  1094.   IFS="$ac_save_ifs"
  1095. fi
  1096. fi
  1097. YACC="$ac_cv_prog_YACC"
  1098. if test -n "$YACC"; then
  1099.   echo "$ac_t""$YACC" 1>&6
  1100. else
  1101.   echo "$ac_t""no" 1>&6
  1102. fi
  1103.  
  1104. test -n "$YACC" && break
  1105. done
  1106. test -n "$YACC" || YACC="yacc"
  1107.  
  1108. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  1109. cat > conftest.$ac_ext <<EOF
  1110. #line 1111 "configure"
  1111. #include "confdefs.h"
  1112. #ifdef _AIX
  1113.   yes
  1114. #endif
  1115.  
  1116. EOF
  1117. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1118.   egrep "yes" >/dev/null 2>&1; then
  1119.   rm -rf conftest*
  1120.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1121. #define _ALL_SOURCE 1
  1122. EOF
  1123.  
  1124. else
  1125.   rm -rf conftest*
  1126.   echo "$ac_t""no" 1>&6
  1127. fi
  1128. rm -f conftest*
  1129.  
  1130.  
  1131. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  1132. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  1133. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1134.   echo $ac_n "(cached) $ac_c" 1>&6
  1135. else
  1136.   cat > conftest.$ac_ext <<EOF
  1137. #line 1138 "configure"
  1138. #include "confdefs.h"
  1139. #include <minix/config.h>
  1140. EOF
  1141. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1142. { (eval echo configure:1143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1143. ac_err=`grep -v '^ *+' conftest.out`
  1144. if test -z "$ac_err"; then
  1145.   rm -rf conftest*
  1146.   eval "ac_cv_header_$ac_safe=yes"
  1147. else
  1148.   echo "$ac_err" >&5
  1149.   rm -rf conftest*
  1150.   eval "ac_cv_header_$ac_safe=no"
  1151. fi
  1152. rm -f conftest*
  1153. fi
  1154. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1155.   echo "$ac_t""yes" 1>&6
  1156.   MINIX=yes
  1157. else
  1158.   echo "$ac_t""no" 1>&6
  1159. MINIX=
  1160. fi
  1161.  
  1162. if test "$MINIX" = yes; then
  1163.   cat >> confdefs.h <<\EOF
  1164. #define _POSIX_SOURCE 1
  1165. EOF
  1166.  
  1167.   cat >> confdefs.h <<\EOF
  1168. #define _POSIX_1_SOURCE 2
  1169. EOF
  1170.  
  1171.   cat >> confdefs.h <<\EOF
  1172. #define _MINIX 1
  1173. EOF
  1174.  
  1175. fi
  1176.  
  1177. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  1178. if test -d /etc/conf/kconfig.d &&
  1179.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1180. then
  1181.   echo "$ac_t""yes" 1>&6
  1182.   ISC=yes # If later tests want to check for ISC.
  1183.   cat >> confdefs.h <<\EOF
  1184. #define _POSIX_SOURCE 1
  1185. EOF
  1186.  
  1187.   if test "$GCC" = yes; then
  1188.     CC="$CC -posix"
  1189.   else
  1190.     CC="$CC -Xp"
  1191.   fi
  1192. else
  1193.   echo "$ac_t""no" 1>&6
  1194.   ISC=
  1195. fi
  1196.  
  1197.  
  1198. echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
  1199. if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
  1200.   echo $ac_n "(cached) $ac_c" 1>&6
  1201. else
  1202.   ac_cv_prog_cc_stdc=no
  1203. ac_save_CFLAGS="$CFLAGS"
  1204. # Don't try gcc -ansi; that turns off useful extensions and
  1205. # breaks some systems' header files.
  1206. # AIX            -qlanglvl=ansi
  1207. # Ultrix and OSF/1    -std1
  1208. # HP-UX            -Aa -D_HPUX_SOURCE
  1209. # SVR4            -Xc -D__EXTENSIONS__
  1210. for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1211. do
  1212.   CFLAGS="$ac_save_CFLAGS $ac_arg"
  1213.   cat > conftest.$ac_ext <<EOF
  1214. #line 1215 "configure"
  1215. #include "confdefs.h"
  1216. #if !defined(__STDC__) || __STDC__ != 1
  1217. choke me
  1218. #endif
  1219.  
  1220. int main() { return 0; }
  1221. int t() {
  1222. /* DYNIX/ptx V4.1.3 can't compile sys/stat.h with -Xc -D__EXTENSIONS__. */
  1223. #include <sys/types.h>
  1224. #include <sys/stat.h>
  1225. int test (int i, double x);
  1226. struct s1 {int (*f) (int a);};
  1227. struct s2 {int (*f) (double a);};
  1228. ; return 0; }
  1229. EOF
  1230. if { (eval echo configure:1231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1231.   rm -rf conftest*
  1232.   ac_cv_prog_cc_stdc="$ac_arg"; break
  1233. fi
  1234. rm -f conftest*
  1235.  
  1236. done
  1237. CFLAGS="$ac_save_CFLAGS"
  1238.  
  1239. fi
  1240.  
  1241. echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
  1242. case "x$ac_cv_prog_cc_stdc" in
  1243.   x|xno) ;;
  1244.   *) CC="$CC $ac_cv_prog_cc_stdc" ;;
  1245. esac
  1246.  
  1247.  
  1248. echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
  1249. if test "$ac_cv_prog_cc_stdc" != no; then
  1250.   echo "$ac_t""yes" 1>&6
  1251.   cat >> confdefs.h <<\EOF
  1252. #define PROTOTYPES 1
  1253. EOF
  1254.  
  1255.   U= ANSI2KNR=
  1256. else
  1257.   echo "$ac_t""no" 1>&6
  1258.   U=_ ANSI2KNR=./ansi2knr
  1259. fi
  1260.  
  1261.  
  1262. echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
  1263. if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
  1264.   echo $ac_n "(cached) $ac_c" 1>&6
  1265. else
  1266.   cat > conftest.$ac_ext <<EOF
  1267. #line 1268 "configure"
  1268. #include "confdefs.h"
  1269. #include <sys/types.h>
  1270. int main() { return 0; }
  1271. int t() {
  1272. return makedev(0, 0);
  1273. ; return 0; }
  1274. EOF
  1275. if { (eval echo configure:1276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1276.   rm -rf conftest*
  1277.   ac_cv_header_sys_types_h_makedev=yes
  1278. else
  1279.   rm -rf conftest*
  1280.   ac_cv_header_sys_types_h_makedev=no
  1281. fi
  1282. rm -f conftest*
  1283.  
  1284.  
  1285. fi
  1286.  
  1287. echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
  1288.  
  1289. if test $ac_cv_header_sys_types_h_makedev = no; then
  1290. ac_safe=`echo "sys/mkdev.h" | tr './\055' '___'`
  1291. echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
  1292. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1293.   echo $ac_n "(cached) $ac_c" 1>&6
  1294. else
  1295.   cat > conftest.$ac_ext <<EOF
  1296. #line 1297 "configure"
  1297. #include "confdefs.h"
  1298. #include <sys/mkdev.h>
  1299. EOF
  1300. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1301. { (eval echo configure:1302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1302. ac_err=`grep -v '^ *+' conftest.out`
  1303. if test -z "$ac_err"; then
  1304.   rm -rf conftest*
  1305.   eval "ac_cv_header_$ac_safe=yes"
  1306. else
  1307.   echo "$ac_err" >&5
  1308.   rm -rf conftest*
  1309.   eval "ac_cv_header_$ac_safe=no"
  1310. fi
  1311. rm -f conftest*
  1312. fi
  1313. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1314.   echo "$ac_t""yes" 1>&6
  1315.   cat >> confdefs.h <<\EOF
  1316. #define MAJOR_IN_MKDEV 1
  1317. EOF
  1318.  
  1319. else
  1320.   echo "$ac_t""no" 1>&6
  1321. fi
  1322.  
  1323.  
  1324.   if test $ac_cv_header_sys_mkdev_h = no; then
  1325. ac_safe=`echo "sys/sysmacros.h" | tr './\055' '___'`
  1326. echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
  1327. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1328.   echo $ac_n "(cached) $ac_c" 1>&6
  1329. else
  1330.   cat > conftest.$ac_ext <<EOF
  1331. #line 1332 "configure"
  1332. #include "confdefs.h"
  1333. #include <sys/sysmacros.h>
  1334. EOF
  1335. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1336. { (eval echo configure:1337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1337. ac_err=`grep -v '^ *+' conftest.out`
  1338. if test -z "$ac_err"; then
  1339.   rm -rf conftest*
  1340.   eval "ac_cv_header_$ac_safe=yes"
  1341. else
  1342.   echo "$ac_err" >&5
  1343.   rm -rf conftest*
  1344.   eval "ac_cv_header_$ac_safe=no"
  1345. fi
  1346. rm -f conftest*
  1347. fi
  1348. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1349.   echo "$ac_t""yes" 1>&6
  1350.   cat >> confdefs.h <<\EOF
  1351. #define MAJOR_IN_SYSMACROS 1
  1352. EOF
  1353.  
  1354. else
  1355.   echo "$ac_t""no" 1>&6
  1356. fi
  1357.  
  1358.   fi
  1359. fi
  1360.  
  1361. ac_header_dirent=no
  1362. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1363. do
  1364. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1365. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1366. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1367.   echo $ac_n "(cached) $ac_c" 1>&6
  1368. else
  1369.   cat > conftest.$ac_ext <<EOF
  1370. #line 1371 "configure"
  1371. #include "confdefs.h"
  1372. #include <sys/types.h>
  1373. #include <$ac_hdr>
  1374. int main() { return 0; }
  1375. int t() {
  1376. DIR *dirp = 0;
  1377. ; return 0; }
  1378. EOF
  1379. if { (eval echo configure:1380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1380.   rm -rf conftest*
  1381.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1382. else
  1383.   rm -rf conftest*
  1384.   eval "ac_cv_header_dirent_$ac_safe=no"
  1385. fi
  1386. rm -f conftest*
  1387.  
  1388. fi
  1389. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1390.   echo "$ac_t""yes" 1>&6
  1391.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
  1392.   cat >> confdefs.h <<EOF
  1393. #define $ac_tr_hdr 1
  1394. EOF
  1395.  ac_header_dirent=$ac_hdr; break
  1396. else
  1397.   echo "$ac_t""no" 1>&6
  1398. fi
  1399. done
  1400. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1401. if test $ac_header_dirent = dirent.h; then
  1402. echo $ac_n "checking for -ldir""... $ac_c" 1>&6
  1403. ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
  1404. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1405.   echo $ac_n "(cached) $ac_c" 1>&6
  1406. else
  1407.   ac_save_LIBS="$LIBS"
  1408. LIBS="-ldir  $LIBS"
  1409. cat > conftest.$ac_ext <<EOF
  1410. #line 1411 "configure"
  1411. #include "confdefs.h"
  1412. /* Override any gcc2 internal prototype to avoid an error.  */
  1413. /* We use char because int might match the return type of a gcc2
  1414.     builtin and then its argument prototype would still apply.  */
  1415. char opendir();
  1416.  
  1417. int main() { return 0; }
  1418. int t() {
  1419. opendir()
  1420. ; return 0; }
  1421. EOF
  1422. if { (eval echo configure:1423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1423.   rm -rf conftest*
  1424.   eval "ac_cv_lib_$ac_lib_var=yes"
  1425. else
  1426.   rm -rf conftest*
  1427.   eval "ac_cv_lib_$ac_lib_var=no"
  1428. fi
  1429. rm -f conftest*
  1430. LIBS="$ac_save_LIBS"
  1431.  
  1432. fi
  1433. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1434.   echo "$ac_t""yes" 1>&6
  1435.   LIBS="$LIBS -ldir"
  1436. else
  1437.   echo "$ac_t""no" 1>&6
  1438. fi
  1439.  
  1440. else
  1441. echo $ac_n "checking for -lx""... $ac_c" 1>&6
  1442. ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
  1443. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1444.   echo $ac_n "(cached) $ac_c" 1>&6
  1445. else
  1446.   ac_save_LIBS="$LIBS"
  1447. LIBS="-lx  $LIBS"
  1448. cat > conftest.$ac_ext <<EOF
  1449. #line 1450 "configure"
  1450. #include "confdefs.h"
  1451. /* Override any gcc2 internal prototype to avoid an error.  */
  1452. /* We use char because int might match the return type of a gcc2
  1453.     builtin and then its argument prototype would still apply.  */
  1454. char opendir();
  1455.  
  1456. int main() { return 0; }
  1457. int t() {
  1458. opendir()
  1459. ; return 0; }
  1460. EOF
  1461. if { (eval echo configure:1462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1462.   rm -rf conftest*
  1463.   eval "ac_cv_lib_$ac_lib_var=yes"
  1464. else
  1465.   rm -rf conftest*
  1466.   eval "ac_cv_lib_$ac_lib_var=no"
  1467. fi
  1468. rm -f conftest*
  1469. LIBS="$ac_save_LIBS"
  1470.  
  1471. fi
  1472. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1473.   echo "$ac_t""yes" 1>&6
  1474.   LIBS="$LIBS -lx"
  1475. else
  1476.   echo "$ac_t""no" 1>&6
  1477. fi
  1478.  
  1479. fi
  1480.  
  1481. # If we cannot run a trivial program, we must be cross compiling.
  1482. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1483. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1484.   echo $ac_n "(cached) $ac_c" 1>&6
  1485. else
  1486.   if test "$cross_compiling" = yes; then
  1487.   ac_cv_c_cross=yes
  1488. else
  1489. cat > conftest.$ac_ext <<EOF
  1490. #line 1491 "configure"
  1491. #include "confdefs.h"
  1492. main(){return(0);}
  1493. EOF
  1494. { (eval echo configure:1495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1495. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1496.   ac_cv_c_cross=no
  1497. else
  1498.   ac_cv_c_cross=yes
  1499. fi
  1500. fi
  1501. rm -fr conftest*
  1502. fi
  1503.  
  1504. echo "$ac_t""$ac_cv_c_cross" 1>&6
  1505. cross_compiling=$ac_cv_c_cross
  1506.  
  1507. echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
  1508. if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
  1509.   echo $ac_n "(cached) $ac_c" 1>&6
  1510. else
  1511.   if test "$cross_compiling" = yes; then
  1512.   ac_cv_func_closedir_void=yes
  1513. else
  1514. cat > conftest.$ac_ext <<EOF
  1515. #line 1516 "configure"
  1516. #include "confdefs.h"
  1517. #include <sys/types.h>
  1518. #include <$ac_header_dirent>
  1519. int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1520. EOF
  1521. { (eval echo configure:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1522. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1523.   ac_cv_func_closedir_void=no
  1524. else
  1525.   ac_cv_func_closedir_void=yes
  1526. fi
  1527. fi
  1528. rm -fr conftest*
  1529. fi
  1530.  
  1531. echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
  1532. if test $ac_cv_func_closedir_void = yes; then
  1533.   cat >> confdefs.h <<\EOF
  1534. #define CLOSEDIR_VOID 1
  1535. EOF
  1536.  
  1537. fi
  1538.  
  1539.  
  1540. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  1541. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  1542.   echo $ac_n "(cached) $ac_c" 1>&6
  1543. else
  1544.   cat > conftest.$ac_ext <<EOF
  1545. #line 1546 "configure"
  1546. #include "confdefs.h"
  1547. #include <sys/types.h>
  1548. EOF
  1549. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1550.   egrep "uid_t" >/dev/null 2>&1; then
  1551.   rm -rf conftest*
  1552.   ac_cv_type_uid_t=yes
  1553. else
  1554.   rm -rf conftest*
  1555.   ac_cv_type_uid_t=no
  1556. fi
  1557. rm -f conftest*
  1558.  
  1559. fi
  1560.  
  1561. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  1562. if test $ac_cv_type_uid_t = no; then
  1563.   cat >> confdefs.h <<\EOF
  1564. #define uid_t int
  1565. EOF
  1566.  
  1567.   cat >> confdefs.h <<\EOF
  1568. #define gid_t int
  1569. EOF
  1570.  
  1571. fi
  1572.  
  1573. echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
  1574. if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
  1575.   echo $ac_n "(cached) $ac_c" 1>&6
  1576. else
  1577.   if test "$cross_compiling" = yes; then
  1578.   ac_cv_type_getgroups=cross
  1579. else
  1580. cat > conftest.$ac_ext <<EOF
  1581. #line 1582 "configure"
  1582. #include "confdefs.h"
  1583.  
  1584. /* Thanks to Mike Rendell for this test.  */
  1585. #include <sys/types.h>
  1586. #define NGID 256
  1587. #undef MAX
  1588. #define MAX(x, y) ((x) > (y) ? (x) : (y))
  1589. main()
  1590. {
  1591.   gid_t gidset[NGID];
  1592.   int i, n;
  1593.   union { gid_t gval; long lval; }  val;
  1594.  
  1595.   val.lval = -1;
  1596.   for (i = 0; i < NGID; i++)
  1597.     gidset[i] = val.gval;
  1598.   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
  1599.                  gidset);
  1600.   /* Exit non-zero if getgroups seems to require an array of ints.  This
  1601.      happens when gid_t is short but getgroups modifies an array of ints.  */
  1602.   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
  1603. }
  1604.  
  1605. EOF
  1606. { (eval echo configure:1607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1607. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1608.     ac_cv_type_getgroups=gid_t
  1609. else
  1610.   ac_cv_type_getgroups=int
  1611. fi
  1612. fi
  1613. rm -fr conftest*
  1614. if test $ac_cv_type_getgroups = cross; then
  1615.         cat > conftest.$ac_ext <<EOF
  1616. #line 1617 "configure"
  1617. #include "confdefs.h"
  1618. #include <unistd.h>
  1619. EOF
  1620. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1621.   egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
  1622.   rm -rf conftest*
  1623.   ac_cv_type_getgroups=gid_t
  1624. else
  1625.   rm -rf conftest*
  1626.   ac_cv_type_getgroups=int
  1627. fi
  1628. rm -f conftest*
  1629.  
  1630. fi
  1631. fi
  1632.  
  1633. echo "$ac_t""$ac_cv_type_getgroups" 1>&6
  1634. cat >> confdefs.h <<EOF
  1635. #define GETGROUPS_T $ac_cv_type_getgroups
  1636. EOF
  1637.  
  1638.  
  1639. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1640. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1641.   echo $ac_n "(cached) $ac_c" 1>&6
  1642. else
  1643.   cat > conftest.$ac_ext <<EOF
  1644. #line 1645 "configure"
  1645. #include "confdefs.h"
  1646. #include <stdlib.h>
  1647. #include <stdarg.h>
  1648. #include <string.h>
  1649. #include <float.h>
  1650. EOF
  1651. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1652. { (eval echo configure:1653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1653. ac_err=`grep -v '^ *+' conftest.out`
  1654. if test -z "$ac_err"; then
  1655.   rm -rf conftest*
  1656.   ac_cv_header_stdc=yes
  1657. else
  1658.   echo "$ac_err" >&5
  1659.   rm -rf conftest*
  1660.   ac_cv_header_stdc=no
  1661. fi
  1662. rm -f conftest*
  1663.  
  1664. if test $ac_cv_header_stdc = yes; then
  1665.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1666. cat > conftest.$ac_ext <<EOF
  1667. #line 1668 "configure"
  1668. #include "confdefs.h"
  1669. #include <string.h>
  1670. EOF
  1671. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1672.   egrep "memchr" >/dev/null 2>&1; then
  1673.   :
  1674. else
  1675.   rm -rf conftest*
  1676.   ac_cv_header_stdc=no
  1677. fi
  1678. rm -f conftest*
  1679.  
  1680. fi
  1681.  
  1682. if test $ac_cv_header_stdc = yes; then
  1683.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1684. cat > conftest.$ac_ext <<EOF
  1685. #line 1686 "configure"
  1686. #include "confdefs.h"
  1687. #include <stdlib.h>
  1688. EOF
  1689. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1690.   egrep "free" >/dev/null 2>&1; then
  1691.   :
  1692. else
  1693.   rm -rf conftest*
  1694.   ac_cv_header_stdc=no
  1695. fi
  1696. rm -f conftest*
  1697.  
  1698. fi
  1699.  
  1700. if test $ac_cv_header_stdc = yes; then
  1701.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1702. if test "$cross_compiling" = yes; then
  1703.   :
  1704. else
  1705. cat > conftest.$ac_ext <<EOF
  1706. #line 1707 "configure"
  1707. #include "confdefs.h"
  1708. #include <ctype.h>
  1709. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1710. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1711. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1712. int main () { int i; for (i = 0; i < 256; i++)
  1713. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1714. exit (0); }
  1715.  
  1716. EOF
  1717. { (eval echo configure:1718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1718. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1719.   :
  1720. else
  1721.   ac_cv_header_stdc=no
  1722. fi
  1723. fi
  1724. rm -fr conftest*
  1725. fi
  1726. fi
  1727.  
  1728. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1729. if test $ac_cv_header_stdc = yes; then
  1730.   cat >> confdefs.h <<\EOF
  1731. #define STDC_HEADERS 1
  1732. EOF
  1733.  
  1734. fi
  1735.  
  1736. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  1737. if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  1738.   echo $ac_n "(cached) $ac_c" 1>&6
  1739. else
  1740.   cat > conftest.$ac_ext <<EOF
  1741. #line 1742 "configure"
  1742. #include "confdefs.h"
  1743. #include <sys/types.h>
  1744. #if STDC_HEADERS
  1745. #include <stdlib.h>
  1746. #endif
  1747. EOF
  1748. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1749.   egrep "mode_t" >/dev/null 2>&1; then
  1750.   rm -rf conftest*
  1751.   ac_cv_type_mode_t=yes
  1752. else
  1753.   rm -rf conftest*
  1754.   ac_cv_type_mode_t=no
  1755. fi
  1756. rm -f conftest*
  1757.  
  1758. fi
  1759. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  1760. if test $ac_cv_type_mode_t = no; then
  1761.   cat >> confdefs.h <<\EOF
  1762. #define mode_t int
  1763. EOF
  1764.  
  1765. fi
  1766.  
  1767. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  1768. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  1769.   echo $ac_n "(cached) $ac_c" 1>&6
  1770. else
  1771.   cat > conftest.$ac_ext <<EOF
  1772. #line 1773 "configure"
  1773. #include "confdefs.h"
  1774. #include <sys/types.h>
  1775. #if STDC_HEADERS
  1776. #include <stdlib.h>
  1777. #endif
  1778. EOF
  1779. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1780.   egrep "off_t" >/dev/null 2>&1; then
  1781.   rm -rf conftest*
  1782.   ac_cv_type_off_t=yes
  1783. else
  1784.   rm -rf conftest*
  1785.   ac_cv_type_off_t=no
  1786. fi
  1787. rm -f conftest*
  1788.  
  1789. fi
  1790. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  1791. if test $ac_cv_type_off_t = no; then
  1792.   cat >> confdefs.h <<\EOF
  1793. #define off_t long
  1794. EOF
  1795.  
  1796. fi
  1797.  
  1798. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1799. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1800.   echo $ac_n "(cached) $ac_c" 1>&6
  1801. else
  1802.   cat > conftest.$ac_ext <<EOF
  1803. #line 1804 "configure"
  1804. #include "confdefs.h"
  1805. #include <sys/types.h>
  1806. #include <signal.h>
  1807. #ifdef signal
  1808. #undef signal
  1809. #endif
  1810. #ifdef __cplusplus
  1811. extern "C" void (*signal (int, void (*)(int)))(int);
  1812. #else
  1813. void (*signal ()) ();
  1814. #endif
  1815.  
  1816. int main() { return 0; }
  1817. int t() {
  1818. int i;
  1819. ; return 0; }
  1820. EOF
  1821. if { (eval echo configure:1822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1822.   rm -rf conftest*
  1823.   ac_cv_type_signal=void
  1824. else
  1825.   rm -rf conftest*
  1826.   ac_cv_type_signal=int
  1827. fi
  1828. rm -f conftest*
  1829.  
  1830. fi
  1831.  
  1832. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1833. cat >> confdefs.h <<EOF
  1834. #define RETSIGTYPE $ac_cv_type_signal
  1835. EOF
  1836.  
  1837.  
  1838. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1839. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1840.   echo $ac_n "(cached) $ac_c" 1>&6
  1841. else
  1842.   cat > conftest.$ac_ext <<EOF
  1843. #line 1844 "configure"
  1844. #include "confdefs.h"
  1845. #include <sys/types.h>
  1846. #if STDC_HEADERS
  1847. #include <stdlib.h>
  1848. #endif
  1849. EOF
  1850. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1851.   egrep "size_t" >/dev/null 2>&1; then
  1852.   rm -rf conftest*
  1853.   ac_cv_type_size_t=yes
  1854. else
  1855.   rm -rf conftest*
  1856.   ac_cv_type_size_t=no
  1857. fi
  1858. rm -f conftest*
  1859.  
  1860. fi
  1861. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1862. if test $ac_cv_type_size_t = no; then
  1863.   cat >> confdefs.h <<\EOF
  1864. #define size_t unsigned
  1865. EOF
  1866.  
  1867. fi
  1868.  
  1869. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  1870. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  1871.   echo $ac_n "(cached) $ac_c" 1>&6
  1872. else
  1873.   cat > conftest.$ac_ext <<EOF
  1874. #line 1875 "configure"
  1875. #include "confdefs.h"
  1876. #include <sys/types.h>
  1877. EOF
  1878. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1879.   egrep "uid_t" >/dev/null 2>&1; then
  1880.   rm -rf conftest*
  1881.   ac_cv_type_uid_t=yes
  1882. else
  1883.   rm -rf conftest*
  1884.   ac_cv_type_uid_t=no
  1885. fi
  1886. rm -f conftest*
  1887.  
  1888. fi
  1889.  
  1890. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  1891. if test $ac_cv_type_uid_t = no; then
  1892.   cat >> confdefs.h <<\EOF
  1893. #define uid_t int
  1894. EOF
  1895.  
  1896.   cat >> confdefs.h <<\EOF
  1897. #define gid_t int
  1898. EOF
  1899.  
  1900. fi
  1901.  
  1902. echo $ac_n "checking for ino_t""... $ac_c" 1>&6
  1903. if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
  1904.   echo $ac_n "(cached) $ac_c" 1>&6
  1905. else
  1906.   cat > conftest.$ac_ext <<EOF
  1907. #line 1908 "configure"
  1908. #include "confdefs.h"
  1909. #include <sys/types.h>
  1910. #if STDC_HEADERS
  1911. #include <stdlib.h>
  1912. #endif
  1913. EOF
  1914. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1915.   egrep "ino_t" >/dev/null 2>&1; then
  1916.   rm -rf conftest*
  1917.   ac_cv_type_ino_t=yes
  1918. else
  1919.   rm -rf conftest*
  1920.   ac_cv_type_ino_t=no
  1921. fi
  1922. rm -f conftest*
  1923.  
  1924. fi
  1925. echo "$ac_t""$ac_cv_type_ino_t" 1>&6
  1926. if test $ac_cv_type_ino_t = no; then
  1927.   cat >> confdefs.h <<\EOF
  1928. #define ino_t unsigned long
  1929. EOF
  1930.  
  1931. fi
  1932.  
  1933.  
  1934. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1935. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1936.   echo $ac_n "(cached) $ac_c" 1>&6
  1937. else
  1938.   cat > conftest.$ac_ext <<EOF
  1939. #line 1940 "configure"
  1940. #include "confdefs.h"
  1941.  
  1942. int main() { return 0; }
  1943. int t() {
  1944.  
  1945. /* Ultrix mips cc rejects this.  */
  1946. typedef int charset[2]; const charset x;
  1947. /* SunOS 4.1.1 cc rejects this.  */
  1948. char const *const *ccp;
  1949. char **p;
  1950. /* NEC SVR4.0.2 mips cc rejects this.  */
  1951. struct point {int x, y;};
  1952. static struct point const zero = {0,0};
  1953. /* AIX XL C 1.02.0.0 rejects this.
  1954.    It does not let you subtract one const X* pointer from another in an arm
  1955.    of an if-expression whose if-part is not a constant expression */
  1956. const char *g = "string";
  1957. ccp = &g + (g ? g-g : 0);
  1958. /* HPUX 7.0 cc rejects these. */
  1959. ++ccp;
  1960. p = (char**) ccp;
  1961. ccp = (char const *const *) p;
  1962. { /* SCO 3.2v4 cc rejects this.  */
  1963.   char *t;
  1964.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1965.  
  1966.   *t++ = 0;
  1967. }
  1968. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1969.   int x[] = {25, 17};
  1970.   const int *foo = &x[0];
  1971.   ++foo;
  1972. }
  1973. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1974.   typedef const int *iptr;
  1975.   iptr p = 0;
  1976.   ++p;
  1977. }
  1978. { /* AIX XL C 1.02.0.0 rejects this saying
  1979.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1980.   struct s { int j; const int *ap[3]; };
  1981.   struct s *b; b->j = 5;
  1982. }
  1983. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1984.   const int foo = 10;
  1985. }
  1986.  
  1987. ; return 0; }
  1988. EOF
  1989. if { (eval echo configure:1990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1990.   rm -rf conftest*
  1991.   ac_cv_c_const=yes
  1992. else
  1993.   rm -rf conftest*
  1994.   ac_cv_c_const=no
  1995. fi
  1996. rm -f conftest*
  1997.  
  1998. fi
  1999.  
  2000. echo "$ac_t""$ac_cv_c_const" 1>&6
  2001. if test $ac_cv_c_const = no; then
  2002.   cat >> confdefs.h <<\EOF
  2003. #define const 
  2004. EOF
  2005.  
  2006. fi
  2007.  
  2008. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2009. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  2010.   echo $ac_n "(cached) $ac_c" 1>&6
  2011. else
  2012.   cat > conftest.$ac_ext <<EOF
  2013. #line 2014 "configure"
  2014. #include "confdefs.h"
  2015. #include <stdlib.h>
  2016. #include <stdarg.h>
  2017. #include <string.h>
  2018. #include <float.h>
  2019. EOF
  2020. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2021. { (eval echo configure:2022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2022. ac_err=`grep -v '^ *+' conftest.out`
  2023. if test -z "$ac_err"; then
  2024.   rm -rf conftest*
  2025.   ac_cv_header_stdc=yes
  2026. else
  2027.   echo "$ac_err" >&5
  2028.   rm -rf conftest*
  2029.   ac_cv_header_stdc=no
  2030. fi
  2031. rm -f conftest*
  2032.  
  2033. if test $ac_cv_header_stdc = yes; then
  2034.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2035. cat > conftest.$ac_ext <<EOF
  2036. #line 2037 "configure"
  2037. #include "confdefs.h"
  2038. #include <string.h>
  2039. EOF
  2040. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2041.   egrep "memchr" >/dev/null 2>&1; then
  2042.   :
  2043. else
  2044.   rm -rf conftest*
  2045.   ac_cv_header_stdc=no
  2046. fi
  2047. rm -f conftest*
  2048.  
  2049. fi
  2050.  
  2051. if test $ac_cv_header_stdc = yes; then
  2052.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2053. cat > conftest.$ac_ext <<EOF
  2054. #line 2055 "configure"
  2055. #include "confdefs.h"
  2056. #include <stdlib.h>
  2057. EOF
  2058. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2059.   egrep "free" >/dev/null 2>&1; then
  2060.   :
  2061. else
  2062.   rm -rf conftest*
  2063.   ac_cv_header_stdc=no
  2064. fi
  2065. rm -f conftest*
  2066.  
  2067. fi
  2068.  
  2069. if test $ac_cv_header_stdc = yes; then
  2070.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2071. if test "$cross_compiling" = yes; then
  2072.   :
  2073. else
  2074. cat > conftest.$ac_ext <<EOF
  2075. #line 2076 "configure"
  2076. #include "confdefs.h"
  2077. #include <ctype.h>
  2078. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2079. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2080. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2081. int main () { int i; for (i = 0; i < 256; i++)
  2082. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2083. exit (0); }
  2084.  
  2085. EOF
  2086. { (eval echo configure:2087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2087. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2088.   :
  2089. else
  2090.   ac_cv_header_stdc=no
  2091. fi
  2092. fi
  2093. rm -fr conftest*
  2094. fi
  2095. fi
  2096.  
  2097. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2098. if test $ac_cv_header_stdc = yes; then
  2099.   cat >> confdefs.h <<\EOF
  2100. #define STDC_HEADERS 1
  2101. EOF
  2102.  
  2103. fi
  2104.  
  2105. echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  2106. if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  2107.   echo $ac_n "(cached) $ac_c" 1>&6
  2108. else
  2109.   cat > conftest.$ac_ext <<EOF
  2110. #line 2111 "configure"
  2111. #include "confdefs.h"
  2112. #include <sys/types.h>
  2113. #include <time.h>
  2114. int main() { return 0; }
  2115. int t() {
  2116. struct tm *tp; tp->tm_sec;
  2117. ; return 0; }
  2118. EOF
  2119. if { (eval echo configure:2120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2120.   rm -rf conftest*
  2121.   ac_cv_struct_tm=time.h
  2122. else
  2123.   rm -rf conftest*
  2124.   ac_cv_struct_tm=sys/time.h
  2125. fi
  2126. rm -f conftest*
  2127.  
  2128. fi
  2129.  
  2130. echo "$ac_t""$ac_cv_struct_tm" 1>&6
  2131. if test $ac_cv_struct_tm = sys/time.h; then
  2132.   cat >> confdefs.h <<\EOF
  2133. #define TM_IN_SYS_TIME 1
  2134. EOF
  2135.  
  2136. fi
  2137.  
  2138. echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
  2139. if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
  2140.   echo $ac_n "(cached) $ac_c" 1>&6
  2141. else
  2142.   cat > conftest.$ac_ext <<EOF
  2143. #line 2144 "configure"
  2144. #include "confdefs.h"
  2145. #include <sys/types.h>
  2146. #include <sys/stat.h>
  2147. int main() { return 0; }
  2148. int t() {
  2149. struct stat s; s.st_blocks;
  2150. ; return 0; }
  2151. EOF
  2152. if { (eval echo configure:2153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2153.   rm -rf conftest*
  2154.   ac_cv_struct_st_blocks=yes
  2155. else
  2156.   rm -rf conftest*
  2157.   ac_cv_struct_st_blocks=no
  2158. fi
  2159. rm -f conftest*
  2160.  
  2161. fi
  2162.  
  2163. echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
  2164. if test $ac_cv_struct_st_blocks = yes; then
  2165.   cat >> confdefs.h <<\EOF
  2166. #define HAVE_ST_BLOCKS 1
  2167. EOF
  2168.  
  2169. else
  2170.   LIBOBJS="$LIBOBJS fileblocks.o"
  2171. fi
  2172.  
  2173. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  2174. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  2175.   echo $ac_n "(cached) $ac_c" 1>&6
  2176. else
  2177.   cat > conftest.$ac_ext <<EOF
  2178. #line 2179 "configure"
  2179. #include "confdefs.h"
  2180. #include <sys/types.h>
  2181. #include <sys/time.h>
  2182. #include <time.h>
  2183. int main() { return 0; }
  2184. int t() {
  2185. struct tm *tp;
  2186. ; return 0; }
  2187. EOF
  2188. if { (eval echo configure:2189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2189.   rm -rf conftest*
  2190.   ac_cv_header_time=yes
  2191. else
  2192.   rm -rf conftest*
  2193.   ac_cv_header_time=no
  2194. fi
  2195. rm -f conftest*
  2196.  
  2197. fi
  2198.  
  2199. echo "$ac_t""$ac_cv_header_time" 1>&6
  2200. if test $ac_cv_header_time = yes; then
  2201.   cat >> confdefs.h <<\EOF
  2202. #define TIME_WITH_SYS_TIME 1
  2203. EOF
  2204.  
  2205. fi
  2206.  
  2207. echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
  2208. if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  2209.   echo $ac_n "(cached) $ac_c" 1>&6
  2210. else
  2211.   cat > conftest.$ac_ext <<EOF
  2212. #line 2213 "configure"
  2213. #include "confdefs.h"
  2214. #include <sys/types.h>
  2215. #include <sys/stat.h>
  2216.  
  2217. #if defined(S_ISBLK) && defined(S_IFDIR)
  2218. # if S_ISBLK (S_IFDIR)
  2219. You lose.
  2220. # endif
  2221. #endif
  2222.  
  2223. #if defined(S_ISBLK) && defined(S_IFCHR)
  2224. # if S_ISBLK (S_IFCHR)
  2225. You lose.
  2226. # endif
  2227. #endif
  2228.  
  2229. #if defined(S_ISLNK) && defined(S_IFREG)
  2230. # if S_ISLNK (S_IFREG)
  2231. You lose.
  2232. # endif
  2233. #endif
  2234.  
  2235. #if defined(S_ISSOCK) && defined(S_IFREG)
  2236. # if S_ISSOCK (S_IFREG)
  2237. You lose.
  2238. # endif
  2239. #endif
  2240.  
  2241. EOF
  2242. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2243.   egrep "You lose" >/dev/null 2>&1; then
  2244.   rm -rf conftest*
  2245.   ac_cv_header_stat_broken=yes
  2246. else
  2247.   rm -rf conftest*
  2248.   ac_cv_header_stat_broken=no
  2249. fi
  2250. rm -f conftest*
  2251.  
  2252. fi
  2253.  
  2254. echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
  2255. if test $ac_cv_header_stat_broken = yes; then
  2256.   cat >> confdefs.h <<\EOF
  2257. #define STAT_MACROS_BROKEN 1
  2258. EOF
  2259.  
  2260. fi
  2261.  
  2262.  
  2263. for ac_hdr in string.h fcntl.h limits.h sys/time.h errno.h unistd.h \
  2264.     sys/param.h sys/statfs.h sys/fstyp.h mnttab.h mntent.h utime.h \
  2265.     sys/statvfs.h sys/vfs.h sys/mount.h sys/filsys.h sys/fs_types.h \
  2266.     sys/wait.h sys/ioctl.h values.h
  2267. do
  2268. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2269. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2270. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2271.   echo $ac_n "(cached) $ac_c" 1>&6
  2272. else
  2273.   cat > conftest.$ac_ext <<EOF
  2274. #line 2275 "configure"
  2275. #include "confdefs.h"
  2276. #include <$ac_hdr>
  2277. EOF
  2278. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2279. { (eval echo configure:2280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2280. ac_err=`grep -v '^ *+' conftest.out`
  2281. if test -z "$ac_err"; then
  2282.   rm -rf conftest*
  2283.   eval "ac_cv_header_$ac_safe=yes"
  2284. else
  2285.   echo "$ac_err" >&5
  2286.   rm -rf conftest*
  2287.   eval "ac_cv_header_$ac_safe=no"
  2288. fi
  2289. rm -f conftest*
  2290. fi
  2291. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2292.   echo "$ac_t""yes" 1>&6
  2293.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  2294.   cat >> confdefs.h <<EOF
  2295. #define $ac_tr_hdr 1
  2296. EOF
  2297.  
  2298. else
  2299.   echo "$ac_t""no" 1>&6
  2300. fi
  2301. done
  2302.  
  2303. for ac_func in basename euidaccess group_member memcpy memcmp memset \
  2304.     mkdir mktime rename rmdir stpcpy strcasecmp strdup \
  2305.     strndup strstr strtol strtoul
  2306. do
  2307. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2308. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2309.   echo $ac_n "(cached) $ac_c" 1>&6
  2310. else
  2311.   cat > conftest.$ac_ext <<EOF
  2312. #line 2313 "configure"
  2313. #include "confdefs.h"
  2314. /* System header to define __stub macros and hopefully few prototypes,
  2315.     which can conflict with char $ac_func(); below.  */
  2316. #include <assert.h>
  2317. /* Override any gcc2 internal prototype to avoid an error.  */
  2318. /* We use char because int might match the return type of a gcc2
  2319.     builtin and then its argument prototype would still apply.  */
  2320. char $ac_func();
  2321.  
  2322. int main() { return 0; }
  2323. int t() {
  2324.  
  2325. /* The GNU C library defines this for functions which it implements
  2326.     to always fail with ENOSYS.  Some functions are actually named
  2327.     something starting with __ and the normal name is an alias.  */
  2328. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2329. choke me
  2330. #else
  2331. $ac_func();
  2332. #endif
  2333.  
  2334. ; return 0; }
  2335. EOF
  2336. if { (eval echo configure:2337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2337.   rm -rf conftest*
  2338.   eval "ac_cv_func_$ac_func=yes"
  2339. else
  2340.   rm -rf conftest*
  2341.   eval "ac_cv_func_$ac_func=no"
  2342. fi
  2343. rm -f conftest*
  2344.  
  2345. fi
  2346. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2347.   echo "$ac_t""yes" 1>&6
  2348.   :
  2349. else
  2350.   echo "$ac_t""no" 1>&6
  2351. LIBOBJS="$LIBOBJS ${ac_func}.o"
  2352. fi
  2353.  
  2354. done
  2355.  
  2356. echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
  2357. if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
  2358.   echo $ac_n "(cached) $ac_c" 1>&6
  2359. else
  2360.   cat > conftest.$ac_ext <<EOF
  2361. #line 2362 "configure"
  2362. #include "confdefs.h"
  2363. /* System header to define __stub macros and hopefully few prototypes,
  2364.     which can conflict with char getopt_long(); below.  */
  2365. #include <assert.h>
  2366. /* Override any gcc2 internal prototype to avoid an error.  */
  2367. /* We use char because int might match the return type of a gcc2
  2368.     builtin and then its argument prototype would still apply.  */
  2369. char getopt_long();
  2370.  
  2371. int main() { return 0; }
  2372. int t() {
  2373.  
  2374. /* The GNU C library defines this for functions which it implements
  2375.     to always fail with ENOSYS.  Some functions are actually named
  2376.     something starting with __ and the normal name is an alias.  */
  2377. #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
  2378. choke me
  2379. #else
  2380. getopt_long();
  2381. #endif
  2382.  
  2383. ; return 0; }
  2384. EOF
  2385. if { (eval echo configure:2386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2386.   rm -rf conftest*
  2387.   eval "ac_cv_func_getopt_long=yes"
  2388. else
  2389.   rm -rf conftest*
  2390.   eval "ac_cv_func_getopt_long=no"
  2391. fi
  2392. rm -f conftest*
  2393.  
  2394. fi
  2395. if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
  2396.   echo "$ac_t""yes" 1>&6
  2397.   :
  2398. else
  2399.   echo "$ac_t""no" 1>&6
  2400. LIBOBJS="$LIBOBJS getopt1.o getopt.o"
  2401. fi
  2402.  
  2403.  
  2404. for ac_func in bcopy endgrent endpwent fchdir ftime ftruncate \
  2405.     getcwd getgroups getmntinfo gettimeofday isascii lchown \
  2406.     listmntent memcpy mkfifo strchr strerror strrchr
  2407. do
  2408. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2409. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2410.   echo $ac_n "(cached) $ac_c" 1>&6
  2411. else
  2412.   cat > conftest.$ac_ext <<EOF
  2413. #line 2414 "configure"
  2414. #include "confdefs.h"
  2415. /* System header to define __stub macros and hopefully few prototypes,
  2416.     which can conflict with char $ac_func(); below.  */
  2417. #include <assert.h>
  2418. /* Override any gcc2 internal prototype to avoid an error.  */
  2419. /* We use char because int might match the return type of a gcc2
  2420.     builtin and then its argument prototype would still apply.  */
  2421. char $ac_func();
  2422.  
  2423. int main() { return 0; }
  2424. int t() {
  2425.  
  2426. /* The GNU C library defines this for functions which it implements
  2427.     to always fail with ENOSYS.  Some functions are actually named
  2428.     something starting with __ and the normal name is an alias.  */
  2429. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2430. choke me
  2431. #else
  2432. $ac_func();
  2433. #endif
  2434.  
  2435. ; return 0; }
  2436. EOF
  2437. if { (eval echo configure:2438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2438.   rm -rf conftest*
  2439.   eval "ac_cv_func_$ac_func=yes"
  2440. else
  2441.   rm -rf conftest*
  2442.   eval "ac_cv_func_$ac_func=no"
  2443. fi
  2444. rm -f conftest*
  2445.  
  2446. fi
  2447. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2448.   echo "$ac_t""yes" 1>&6
  2449.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2450.   cat >> confdefs.h <<EOF
  2451. #define $ac_tr_func 1
  2452. EOF
  2453.  
  2454. else
  2455.   echo "$ac_t""no" 1>&6
  2456. fi
  2457. done
  2458.  
  2459.  
  2460. echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
  2461. if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
  2462.   echo $ac_n "(cached) $ac_c" 1>&6
  2463. else
  2464.   cat > conftest.$ac_ext <<EOF
  2465. #line 2466 "configure"
  2466. #include "confdefs.h"
  2467. #include <sys/types.h>
  2468. #include <unistd.h>
  2469. #include <termios.h>
  2470. int main() { return 0; }
  2471. int t() {
  2472. /* SunOS 4.0.3 has termios.h but not the library calls.  */
  2473.    tcgetattr(0, 0);
  2474. ; return 0; }
  2475. EOF
  2476. if { (eval echo configure:2477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2477.   rm -rf conftest*
  2478.   am_cv_sys_posix_termios=yes
  2479. else
  2480.   rm -rf conftest*
  2481.   am_cv_sys_posix_termios=no
  2482. fi
  2483. rm -f conftest*
  2484.  
  2485. fi
  2486.  
  2487. echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
  2488.  
  2489.  
  2490.  echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
  2491. if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
  2492.   echo $ac_n "(cached) $ac_c" 1>&6
  2493. else
  2494.   am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
  2495.  
  2496.   gwinsz_in_termios_h=no
  2497.   if test $am_cv_sys_posix_termios = yes; then
  2498.     cat > conftest.$ac_ext <<EOF
  2499. #line 2500 "configure"
  2500. #include "confdefs.h"
  2501. #include <sys/types.h>
  2502. #     include <termios.h>
  2503. #     ifdef TIOCGWINSZ
  2504.         yes
  2505. #     endif
  2506.     
  2507. EOF
  2508. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2509.   egrep "yes" >/dev/null 2>&1; then
  2510.   rm -rf conftest*
  2511.   gwinsz_in_termios_h=yes
  2512. fi
  2513. rm -f conftest*
  2514.  
  2515.   fi
  2516.  
  2517.   if test $gwinsz_in_termios_h = no; then
  2518.     cat > conftest.$ac_ext <<EOF
  2519. #line 2520 "configure"
  2520. #include "confdefs.h"
  2521. #include <sys/types.h>
  2522. #     include <sys/ioctl.h>
  2523. #     ifdef TIOCGWINSZ
  2524.         yes
  2525. #     endif
  2526.     
  2527. EOF
  2528. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2529.   egrep "yes" >/dev/null 2>&1; then
  2530.   rm -rf conftest*
  2531.   am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
  2532. fi
  2533. rm -f conftest*
  2534.  
  2535.   fi
  2536.   
  2537. fi
  2538.  
  2539. echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
  2540.   if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
  2541.     cat >> confdefs.h <<\EOF
  2542. #define GWINSZ_IN_SYS_IOCTL 1
  2543. EOF
  2544.  
  2545.   fi
  2546.  
  2547.  
  2548. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  2549. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  2550.   echo $ac_n "(cached) $ac_c" 1>&6
  2551. else
  2552.   cat > conftest.$ac_ext <<EOF
  2553. #line 2554 "configure"
  2554. #include "confdefs.h"
  2555. /* System header to define __stub macros and hopefully few prototypes,
  2556.     which can conflict with char vprintf(); below.  */
  2557. #include <assert.h>
  2558. /* Override any gcc2 internal prototype to avoid an error.  */
  2559. /* We use char because int might match the return type of a gcc2
  2560.     builtin and then its argument prototype would still apply.  */
  2561. char vprintf();
  2562.  
  2563. int main() { return 0; }
  2564. int t() {
  2565.  
  2566. /* The GNU C library defines this for functions which it implements
  2567.     to always fail with ENOSYS.  Some functions are actually named
  2568.     something starting with __ and the normal name is an alias.  */
  2569. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  2570. choke me
  2571. #else
  2572. vprintf();
  2573. #endif
  2574.  
  2575. ; return 0; }
  2576. EOF
  2577. if { (eval echo configure:2578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2578.   rm -rf conftest*
  2579.   eval "ac_cv_func_vprintf=yes"
  2580. else
  2581.   rm -rf conftest*
  2582.   eval "ac_cv_func_vprintf=no"
  2583. fi
  2584. rm -f conftest*
  2585.  
  2586. fi
  2587. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  2588.   echo "$ac_t""yes" 1>&6
  2589.   cat >> confdefs.h <<\EOF
  2590. #define HAVE_VPRINTF 1
  2591. EOF
  2592.  
  2593. else
  2594.   echo "$ac_t""no" 1>&6
  2595. fi
  2596.  
  2597. if test "$ac_cv_func_vprintf" != yes; then
  2598. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  2599. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  2600.   echo $ac_n "(cached) $ac_c" 1>&6
  2601. else
  2602.   cat > conftest.$ac_ext <<EOF
  2603. #line 2604 "configure"
  2604. #include "confdefs.h"
  2605. /* System header to define __stub macros and hopefully few prototypes,
  2606.     which can conflict with char _doprnt(); below.  */
  2607. #include <assert.h>
  2608. /* Override any gcc2 internal prototype to avoid an error.  */
  2609. /* We use char because int might match the return type of a gcc2
  2610.     builtin and then its argument prototype would still apply.  */
  2611. char _doprnt();
  2612.  
  2613. int main() { return 0; }
  2614. int t() {
  2615.  
  2616. /* The GNU C library defines this for functions which it implements
  2617.     to always fail with ENOSYS.  Some functions are actually named
  2618.     something starting with __ and the normal name is an alias.  */
  2619. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  2620. choke me
  2621. #else
  2622. _doprnt();
  2623. #endif
  2624.  
  2625. ; return 0; }
  2626. EOF
  2627. if { (eval echo configure:2628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2628.   rm -rf conftest*
  2629.   eval "ac_cv_func__doprnt=yes"
  2630. else
  2631.   rm -rf conftest*
  2632.   eval "ac_cv_func__doprnt=no"
  2633. fi
  2634. rm -f conftest*
  2635.  
  2636. fi
  2637. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  2638.   echo "$ac_t""yes" 1>&6
  2639.   cat >> confdefs.h <<\EOF
  2640. #define HAVE_DOPRNT 1
  2641. EOF
  2642.  
  2643. else
  2644.   echo "$ac_t""no" 1>&6
  2645. fi
  2646.  
  2647. fi
  2648.  
  2649. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  2650. # for constant arguments.  Useless!
  2651. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  2652. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  2653.   echo $ac_n "(cached) $ac_c" 1>&6
  2654. else
  2655.   cat > conftest.$ac_ext <<EOF
  2656. #line 2657 "configure"
  2657. #include "confdefs.h"
  2658. #include <alloca.h>
  2659. int main() { return 0; }
  2660. int t() {
  2661. char *p = alloca(2 * sizeof(int));
  2662. ; return 0; }
  2663. EOF
  2664. if { (eval echo configure:2665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2665.   rm -rf conftest*
  2666.   ac_cv_header_alloca_h=yes
  2667. else
  2668.   rm -rf conftest*
  2669.   ac_cv_header_alloca_h=no
  2670. fi
  2671. rm -f conftest*
  2672.  
  2673. fi
  2674.  
  2675. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  2676. if test $ac_cv_header_alloca_h = yes; then
  2677.   cat >> confdefs.h <<\EOF
  2678. #define HAVE_ALLOCA_H 1
  2679. EOF
  2680.  
  2681. fi
  2682.  
  2683. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  2684. if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  2685.   echo $ac_n "(cached) $ac_c" 1>&6
  2686. else
  2687.   cat > conftest.$ac_ext <<EOF
  2688. #line 2689 "configure"
  2689. #include "confdefs.h"
  2690.  
  2691. #ifdef __GNUC__
  2692. # define alloca __builtin_alloca
  2693. #else
  2694. # if HAVE_ALLOCA_H
  2695. #  include <alloca.h>
  2696. # else
  2697. #  ifdef _AIX
  2698.  #pragma alloca
  2699. #  else
  2700. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  2701. char *alloca ();
  2702. #   endif
  2703. #  endif
  2704. # endif
  2705. #endif
  2706.  
  2707. int main() { return 0; }
  2708. int t() {
  2709. char *p = (char *) alloca(1);
  2710. ; return 0; }
  2711. EOF
  2712. if { (eval echo configure:2713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2713.   rm -rf conftest*
  2714.   ac_cv_func_alloca=yes
  2715. else
  2716.   rm -rf conftest*
  2717.   ac_cv_func_alloca=no
  2718. fi
  2719. rm -f conftest*
  2720.  
  2721. fi
  2722.  
  2723. echo "$ac_t""$ac_cv_func_alloca" 1>&6
  2724. if test $ac_cv_func_alloca = yes; then
  2725.   cat >> confdefs.h <<\EOF
  2726. #define HAVE_ALLOCA 1
  2727. EOF
  2728.  
  2729. fi
  2730.  
  2731. if test $ac_cv_func_alloca = no; then
  2732.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  2733.   # that cause trouble.  Some versions do not even contain alloca or
  2734.   # contain a buggy version.  If you still want to use their alloca,
  2735.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  2736.   ALLOCA=alloca.o
  2737.   cat >> confdefs.h <<\EOF
  2738. #define C_ALLOCA 1
  2739. EOF
  2740.  
  2741.  
  2742. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  2743. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  2744.   echo $ac_n "(cached) $ac_c" 1>&6
  2745. else
  2746.   cat > conftest.$ac_ext <<EOF
  2747. #line 2748 "configure"
  2748. #include "confdefs.h"
  2749. #if defined(CRAY) && ! defined(CRAY2)
  2750. webecray
  2751. #else
  2752. wenotbecray
  2753. #endif
  2754.  
  2755. EOF
  2756. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2757.   egrep "webecray" >/dev/null 2>&1; then
  2758.   rm -rf conftest*
  2759.   ac_cv_os_cray=yes
  2760. else
  2761.   rm -rf conftest*
  2762.   ac_cv_os_cray=no
  2763. fi
  2764. rm -f conftest*
  2765.  
  2766. fi
  2767.  
  2768. echo "$ac_t""$ac_cv_os_cray" 1>&6
  2769. if test $ac_cv_os_cray = yes; then
  2770. for ac_func in _getb67 GETB67 getb67; do
  2771.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2772. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2773.   echo $ac_n "(cached) $ac_c" 1>&6
  2774. else
  2775.   cat > conftest.$ac_ext <<EOF
  2776. #line 2777 "configure"
  2777. #include "confdefs.h"
  2778. /* System header to define __stub macros and hopefully few prototypes,
  2779.     which can conflict with char $ac_func(); below.  */
  2780. #include <assert.h>
  2781. /* Override any gcc2 internal prototype to avoid an error.  */
  2782. /* We use char because int might match the return type of a gcc2
  2783.     builtin and then its argument prototype would still apply.  */
  2784. char $ac_func();
  2785.  
  2786. int main() { return 0; }
  2787. int t() {
  2788.  
  2789. /* The GNU C library defines this for functions which it implements
  2790.     to always fail with ENOSYS.  Some functions are actually named
  2791.     something starting with __ and the normal name is an alias.  */
  2792. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2793. choke me
  2794. #else
  2795. $ac_func();
  2796. #endif
  2797.  
  2798. ; return 0; }
  2799. EOF
  2800. if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2801.   rm -rf conftest*
  2802.   eval "ac_cv_func_$ac_func=yes"
  2803. else
  2804.   rm -rf conftest*
  2805.   eval "ac_cv_func_$ac_func=no"
  2806. fi
  2807. rm -f conftest*
  2808.  
  2809. fi
  2810. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2811.   echo "$ac_t""yes" 1>&6
  2812.   cat >> confdefs.h <<EOF
  2813. #define CRAY_STACKSEG_END $ac_func
  2814. EOF
  2815.  
  2816.   break
  2817. else
  2818.   echo "$ac_t""no" 1>&6
  2819. fi
  2820.  
  2821. done
  2822. fi
  2823.  
  2824. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  2825. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  2826.   echo $ac_n "(cached) $ac_c" 1>&6
  2827. else
  2828.   if test "$cross_compiling" = yes; then
  2829.   ac_cv_c_stack_direction=0
  2830. else
  2831. cat > conftest.$ac_ext <<EOF
  2832. #line 2833 "configure"
  2833. #include "confdefs.h"
  2834. find_stack_direction ()
  2835. {
  2836.   static char *addr = 0;
  2837.   auto char dummy;
  2838.   if (addr == 0)
  2839.     {
  2840.       addr = &dummy;
  2841.       return find_stack_direction ();
  2842.     }
  2843.   else
  2844.     return (&dummy > addr) ? 1 : -1;
  2845. }
  2846. main ()
  2847. {
  2848.   exit (find_stack_direction() < 0);
  2849. }
  2850. EOF
  2851. { (eval echo configure:2852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2852. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2853.   ac_cv_c_stack_direction=1
  2854. else
  2855.   ac_cv_c_stack_direction=-1
  2856. fi
  2857. fi
  2858. rm -fr conftest*
  2859. fi
  2860.  
  2861. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  2862. cat >> confdefs.h <<EOF
  2863. #define STACK_DIRECTION $ac_cv_c_stack_direction
  2864. EOF
  2865.  
  2866. fi
  2867.  
  2868. echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
  2869. if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
  2870.   echo $ac_n "(cached) $ac_c" 1>&6
  2871. else
  2872.   rm -f conftestdata; > conftestdata
  2873. # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
  2874. if test "$cross_compiling" = yes; then
  2875.   ac_cv_func_utime_null=no
  2876. else
  2877. cat > conftest.$ac_ext <<EOF
  2878. #line 2879 "configure"
  2879. #include "confdefs.h"
  2880. #include <sys/types.h>
  2881. #include <sys/stat.h>
  2882. main() {
  2883. struct stat s, t;
  2884. exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
  2885. && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
  2886. && t.st_mtime - s.st_mtime < 120));
  2887. }
  2888. EOF
  2889. { (eval echo configure:2890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2890. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2891.   ac_cv_func_utime_null=yes
  2892. else
  2893.   ac_cv_func_utime_null=no
  2894. fi
  2895. fi
  2896. rm -fr conftest*
  2897. rm -f core core.* *.core
  2898. fi
  2899.  
  2900. echo "$ac_t""$ac_cv_func_utime_null" 1>&6
  2901. if test $ac_cv_func_utime_null = yes; then
  2902.   cat >> confdefs.h <<\EOF
  2903. #define HAVE_UTIME_NULL 1
  2904. EOF
  2905.  
  2906. fi
  2907.  
  2908.  
  2909. echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
  2910. if eval "test \"`echo '$''{'fu_cv_sys_struct_utimbuf'+set}'`\" = set"; then
  2911.   echo $ac_n "(cached) $ac_c" 1>&6
  2912. else
  2913.   cat > conftest.$ac_ext <<EOF
  2914. #line 2915 "configure"
  2915. #include "confdefs.h"
  2916. #ifdef TIME_WITH_SYS_TIME
  2917. #include <sys/time.h>
  2918. #include <time.h>
  2919. #else
  2920. #ifdef HAVE_SYS_TIME_H
  2921. #include <sys/time.h>
  2922. #else
  2923. #include <time.h>
  2924. #endif
  2925. #endif
  2926. #ifdef HAVE_UTIME_H
  2927. #include <utime.h>
  2928. #endif
  2929. int main() { return 0; }
  2930. int t() {
  2931. static struct utimbuf x; x.actime = x.modtime;
  2932. ; return 0; }
  2933. EOF
  2934. if { (eval echo configure:2935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2935.   rm -rf conftest*
  2936.   fu_cv_sys_struct_utimbuf=yes
  2937. else
  2938.   rm -rf conftest*
  2939.   fu_cv_sys_struct_utimbuf=no
  2940. fi
  2941. rm -f conftest*
  2942.  
  2943. fi
  2944.  
  2945. echo "$ac_t""$fu_cv_sys_struct_utimbuf" 1>&6
  2946. if test $fu_cv_sys_struct_utimbuf = yes; then
  2947.    cat >> confdefs.h <<\EOF
  2948. #define HAVE_STRUCT_UTIMBUF 1
  2949. EOF
  2950.  
  2951. fi
  2952.  
  2953. echo $ac_n "checking for working fnmatch function""... $ac_c" 1>&6
  2954. if eval "test \"`echo '$''{'fu_cv_sys_working_fnmatch'+set}'`\" = set"; then
  2955.   echo $ac_n "(cached) $ac_c" 1>&6
  2956. else
  2957.   if test "$cross_compiling" = yes; then
  2958.   fu_cv_sys_working_fnmatch=no
  2959. else
  2960. cat > conftest.$ac_ext <<EOF
  2961. #line 2962 "configure"
  2962. #include "confdefs.h"
  2963.  
  2964. #include <fnmatch.h>
  2965. int
  2966. main ()
  2967. {
  2968.   exit ((fnmatch ("a*", "abc", FNM_PATHNAME) == 0
  2969.      && fnmatch ("a", "b", FNM_PATHNAME) == FNM_NOMATCH)
  2970.     ? 0 : 1);
  2971. }
  2972. EOF
  2973. { (eval echo configure:2974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2974. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2975.   fu_cv_sys_working_fnmatch=yes
  2976. else
  2977.   fu_cv_sys_working_fnmatch=no
  2978. fi
  2979. fi
  2980. rm -fr conftest*
  2981. fi
  2982.  
  2983. if test $fu_cv_sys_working_fnmatch = no; then
  2984.   LIBOBJS="$LIBOBJS fnmatch.o"
  2985. fi
  2986. echo "$ac_t""$fu_cv_sys_working_fnmatch" 1>&6
  2987.  
  2988. echo $ac_n "checking for d_ino member in directory struct""... $ac_c" 1>&6
  2989. if eval "test \"`echo '$''{'fu_cv_sys_d_ino_in_dirent'+set}'`\" = set"; then
  2990.   echo $ac_n "(cached) $ac_c" 1>&6
  2991. else
  2992.   cat > conftest.$ac_ext <<EOF
  2993. #line 2994 "configure"
  2994. #include "confdefs.h"
  2995.  
  2996. #include <sys/types.h>
  2997. #ifdef HAVE_DIRENT_H
  2998. # include <dirent.h>
  2999. #else /* not HAVE_DIRENT_H */
  3000. # define dirent direct
  3001. # ifdef HAVE_SYS_NDIR_H
  3002. #  include <sys/ndir.h>
  3003. # endif /* HAVE_SYS_NDIR_H */
  3004. # ifdef HAVE_SYS_DIR_H
  3005. #  include <sys/dir.h>
  3006. # endif /* HAVE_SYS_DIR_H */
  3007. # ifdef HAVE_NDIR_H
  3008. #  include <ndir.h>
  3009. # endif /* HAVE_NDIR_H */
  3010. #endif /* HAVE_DIRENT_H */
  3011.  
  3012. int main() { return 0; }
  3013. int t() {
  3014. struct dirent dp; dp.d_ino = 0;
  3015. ; return 0; }
  3016. EOF
  3017. if { (eval echo configure:3018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3018.   rm -rf conftest*
  3019.   fu_cv_sys_d_ino_in_dirent=yes
  3020. else
  3021.   rm -rf conftest*
  3022.   fu_cv_sys_d_ino_in_dirent=no
  3023. fi
  3024. rm -f conftest*
  3025.  
  3026. fi
  3027.  
  3028. echo "$ac_t""$fu_cv_sys_d_ino_in_dirent" 1>&6
  3029. if test $fu_cv_sys_d_ino_in_dirent = yes; then
  3030.   cat >> confdefs.h <<\EOF
  3031. #define D_INO_IN_DIRENT 1
  3032. EOF
  3033.  
  3034. fi
  3035.  
  3036. # Determine how to get the list of mounted filesystems.
  3037. list_mounted_fs=
  3038.  
  3039. # If the getmntent function is available but not in the standard library,
  3040. # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
  3041. # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
  3042. echo $ac_n "checking for -lsun""... $ac_c" 1>&6
  3043. ac_lib_var=`echo sun'_'getmntent | tr './+\055' '__p_'`
  3044. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3045.   echo $ac_n "(cached) $ac_c" 1>&6
  3046. else
  3047.   ac_save_LIBS="$LIBS"
  3048. LIBS="-lsun  $LIBS"
  3049. cat > conftest.$ac_ext <<EOF
  3050. #line 3051 "configure"
  3051. #include "confdefs.h"
  3052. /* Override any gcc2 internal prototype to avoid an error.  */
  3053. /* We use char because int might match the return type of a gcc2
  3054.     builtin and then its argument prototype would still apply.  */
  3055. char getmntent();
  3056.  
  3057. int main() { return 0; }
  3058. int t() {
  3059. getmntent()
  3060. ; return 0; }
  3061. EOF
  3062. if { (eval echo configure:3063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3063.   rm -rf conftest*
  3064.   eval "ac_cv_lib_$ac_lib_var=yes"
  3065. else
  3066.   rm -rf conftest*
  3067.   eval "ac_cv_lib_$ac_lib_var=no"
  3068. fi
  3069. rm -f conftest*
  3070. LIBS="$ac_save_LIBS"
  3071.  
  3072. fi
  3073. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3074.   echo "$ac_t""yes" 1>&6
  3075.   LIBS="-lsun $LIBS"
  3076. else
  3077.   echo "$ac_t""no" 1>&6
  3078. echo $ac_n "checking for -lseq""... $ac_c" 1>&6
  3079. ac_lib_var=`echo seq'_'getmntent | tr './+\055' '__p_'`
  3080. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3081.   echo $ac_n "(cached) $ac_c" 1>&6
  3082. else
  3083.   ac_save_LIBS="$LIBS"
  3084. LIBS="-lseq  $LIBS"
  3085. cat > conftest.$ac_ext <<EOF
  3086. #line 3087 "configure"
  3087. #include "confdefs.h"
  3088. /* Override any gcc2 internal prototype to avoid an error.  */
  3089. /* We use char because int might match the return type of a gcc2
  3090.     builtin and then its argument prototype would still apply.  */
  3091. char getmntent();
  3092.  
  3093. int main() { return 0; }
  3094. int t() {
  3095. getmntent()
  3096. ; return 0; }
  3097. EOF
  3098. if { (eval echo configure:3099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3099.   rm -rf conftest*
  3100.   eval "ac_cv_lib_$ac_lib_var=yes"
  3101. else
  3102.   rm -rf conftest*
  3103.   eval "ac_cv_lib_$ac_lib_var=no"
  3104. fi
  3105. rm -f conftest*
  3106. LIBS="$ac_save_LIBS"
  3107.  
  3108. fi
  3109. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3110.   echo "$ac_t""yes" 1>&6
  3111.   LIBS="-lseq $LIBS"
  3112. else
  3113.   echo "$ac_t""no" 1>&6
  3114. echo $ac_n "checking for -lgen""... $ac_c" 1>&6
  3115. ac_lib_var=`echo gen'_'getmntent | tr './+\055' '__p_'`
  3116. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3117.   echo $ac_n "(cached) $ac_c" 1>&6
  3118. else
  3119.   ac_save_LIBS="$LIBS"
  3120. LIBS="-lgen  $LIBS"
  3121. cat > conftest.$ac_ext <<EOF
  3122. #line 3123 "configure"
  3123. #include "confdefs.h"
  3124. /* Override any gcc2 internal prototype to avoid an error.  */
  3125. /* We use char because int might match the return type of a gcc2
  3126.     builtin and then its argument prototype would still apply.  */
  3127. char getmntent();
  3128.  
  3129. int main() { return 0; }
  3130. int t() {
  3131. getmntent()
  3132. ; return 0; }
  3133. EOF
  3134. if { (eval echo configure:3135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3135.   rm -rf conftest*
  3136.   eval "ac_cv_lib_$ac_lib_var=yes"
  3137. else
  3138.   rm -rf conftest*
  3139.   eval "ac_cv_lib_$ac_lib_var=no"
  3140. fi
  3141. rm -f conftest*
  3142. LIBS="$ac_save_LIBS"
  3143.  
  3144. fi
  3145. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3146.   echo "$ac_t""yes" 1>&6
  3147.   LIBS="-lgen $LIBS"
  3148. else
  3149.   echo "$ac_t""no" 1>&6
  3150. fi
  3151.  
  3152. fi
  3153.  
  3154. fi
  3155.  
  3156. echo $ac_n "checking for getmntent""... $ac_c" 1>&6
  3157. if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
  3158.   echo $ac_n "(cached) $ac_c" 1>&6
  3159. else
  3160.   cat > conftest.$ac_ext <<EOF
  3161. #line 3162 "configure"
  3162. #include "confdefs.h"
  3163. /* System header to define __stub macros and hopefully few prototypes,
  3164.     which can conflict with char getmntent(); below.  */
  3165. #include <assert.h>
  3166. /* Override any gcc2 internal prototype to avoid an error.  */
  3167. /* We use char because int might match the return type of a gcc2
  3168.     builtin and then its argument prototype would still apply.  */
  3169. char getmntent();
  3170.  
  3171. int main() { return 0; }
  3172. int t() {
  3173.  
  3174. /* The GNU C library defines this for functions which it implements
  3175.     to always fail with ENOSYS.  Some functions are actually named
  3176.     something starting with __ and the normal name is an alias.  */
  3177. #if defined (__stub_getmntent) || defined (__stub___getmntent)
  3178. choke me
  3179. #else
  3180. getmntent();
  3181. #endif
  3182.  
  3183. ; return 0; }
  3184. EOF
  3185. if { (eval echo configure:3186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3186.   rm -rf conftest*
  3187.   eval "ac_cv_func_getmntent=yes"
  3188. else
  3189.   rm -rf conftest*
  3190.   eval "ac_cv_func_getmntent=no"
  3191. fi
  3192. rm -f conftest*
  3193.  
  3194. fi
  3195. if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
  3196.   echo "$ac_t""yes" 1>&6
  3197.   cat >> confdefs.h <<\EOF
  3198. #define HAVE_GETMNTENT 1
  3199. EOF
  3200.  
  3201. else
  3202.   echo "$ac_t""no" 1>&6
  3203. fi
  3204.  
  3205.  
  3206. # This test must precede the ones for getmntent because Unicos-9 is
  3207. # reported to have the getmntent function, but its support is incompatible
  3208. # with other getmntent implementations.
  3209.  
  3210. # NOTE: Normally, I wouldn't use a check for system type as I've done for
  3211. # `CRAY' below since that goes against the whole autoconf philosophy.  But
  3212. # I think there is too great a chance that some non-Cray system has a
  3213. # function named listmntent to risk the false positive.
  3214.  
  3215. if test -z "$list_mounted_fs"; then
  3216.   # Cray UNICOS 9
  3217.   echo $ac_n "checking for listmntent of Cray/Unicos-9""... $ac_c" 1>&6
  3218.   if eval "test \"`echo '$''{'fu_cv_sys_mounted_cray_listmntent'+set}'`\" = set"; then
  3219.   echo $ac_n "(cached) $ac_c" 1>&6
  3220. else
  3221.   fu_cv_sys_mounted_cray_listmntent=no
  3222.       cat > conftest.$ac_ext <<EOF
  3223. #line 3224 "configure"
  3224. #include "confdefs.h"
  3225. #ifdef _CRAY
  3226. yes
  3227. #endif
  3228.         
  3229. EOF
  3230. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3231.   egrep "yes" >/dev/null 2>&1; then
  3232.   rm -rf conftest*
  3233.   test $ac_cv_func_listmntent = yes \
  3234.         && fu_cv_sys_mounted_cray_listmntent=yes
  3235.       
  3236. fi
  3237. rm -f conftest*
  3238.  
  3239.     
  3240.   
  3241. fi
  3242.  
  3243.   echo "$ac_t""$fu_cv_sys_mounted_cray_listmntent" 1>&6
  3244.   if test $fu_cv_sys_mounted_cray_listmntent = yes; then
  3245.     list_mounted_fs=found
  3246.     cat >> confdefs.h <<\EOF
  3247. #define MOUNTED_LISTMNTENT 1
  3248. EOF
  3249.  
  3250.   fi
  3251. fi
  3252.  
  3253. if test $ac_cv_func_getmntent = yes; then
  3254.  
  3255.   # This system has the getmntent function.
  3256.   # Determine whether it's the one-argument variant or the two-argument one.
  3257.  
  3258.   if test -z "$list_mounted_fs"; then
  3259.     # 4.3BSD, SunOS, HP-UX, Dynix, Irix
  3260.     echo $ac_n "checking for one-argument getmntent function""... $ac_c" 1>&6
  3261.     if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntent1'+set}'`\" = set"; then
  3262.   echo $ac_n "(cached) $ac_c" 1>&6
  3263. else
  3264.   test $ac_cv_header_mntent_h = yes \
  3265.            && fu_cv_sys_mounted_getmntent1=yes \
  3266.            || fu_cv_sys_mounted_getmntent1=no
  3267. fi
  3268.  
  3269.     echo "$ac_t""$fu_cv_sys_mounted_getmntent1" 1>&6
  3270.     if test $fu_cv_sys_mounted_getmntent1 = yes; then
  3271.       list_mounted_fs=found
  3272.       cat >> confdefs.h <<\EOF
  3273. #define MOUNTED_GETMNTENT1 1
  3274. EOF
  3275.  
  3276.     fi
  3277.   fi
  3278.  
  3279.   if test -z "$list_mounted_fs"; then
  3280.     # SVR4
  3281.     echo $ac_n "checking for two-argument getmntent function""... $ac_c" 1>&6
  3282.     if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntent2'+set}'`\" = set"; then
  3283.   echo $ac_n "(cached) $ac_c" 1>&6
  3284. else
  3285.   cat > conftest.$ac_ext <<EOF
  3286. #line 3287 "configure"
  3287. #include "confdefs.h"
  3288. #include <sys/mnttab.h>
  3289. EOF
  3290. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3291.   egrep "getmntent" >/dev/null 2>&1; then
  3292.   rm -rf conftest*
  3293.   fu_cv_sys_mounted_getmntent2=yes
  3294. else
  3295.   rm -rf conftest*
  3296.   fu_cv_sys_mounted_getmntent2=no
  3297. fi
  3298. rm -f conftest*
  3299.  
  3300. fi
  3301.  
  3302.     echo "$ac_t""$fu_cv_sys_mounted_getmntent2" 1>&6
  3303.     if test $fu_cv_sys_mounted_getmntent2 = yes; then
  3304.       list_mounted_fs=found
  3305.       cat >> confdefs.h <<\EOF
  3306. #define MOUNTED_GETMNTENT2 1
  3307. EOF
  3308.  
  3309.     fi
  3310.   fi
  3311.  
  3312.   if test -z "$list_mounted_fs"; then
  3313.     { echo "configure: error: could not determine how to read list of mounted filesystems" 1>&2; exit 1; }
  3314.   fi
  3315.  
  3316. fi
  3317.  
  3318. if test -z "$list_mounted_fs"; then
  3319.   # DEC Alpha running OSF/1.
  3320.   echo $ac_n "checking for getfsstat function""... $ac_c" 1>&6
  3321.   if eval "test \"`echo '$''{'fu_cv_sys_mounted_getsstat'+set}'`\" = set"; then
  3322.   echo $ac_n "(cached) $ac_c" 1>&6
  3323. else
  3324.   cat > conftest.$ac_ext <<EOF
  3325. #line 3326 "configure"
  3326. #include "confdefs.h"
  3327.  
  3328. #include <sys/types.h>
  3329. #include <sys/mount.h>
  3330. #include <sys/fs_types.h>
  3331. int main() { return 0; }
  3332. int t() {
  3333. struct statfs *stats;
  3334.   numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); 
  3335. ; return 0; }
  3336. EOF
  3337. if { (eval echo configure:3338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3338.   rm -rf conftest*
  3339.   fu_cv_sys_mounted_getsstat=yes
  3340. else
  3341.   rm -rf conftest*
  3342.   fu_cv_sys_mounted_getsstat=no
  3343. fi
  3344. rm -f conftest*
  3345.  
  3346. fi
  3347.  
  3348.   echo "$ac_t""$fu_cv_sys_mounted_getsstat" 1>&6
  3349.   if test $fu_cv_sys_mounted_getsstat = yes; then
  3350.     list_mounted_fs=found
  3351.     cat >> confdefs.h <<\EOF
  3352. #define MOUNTED_GETFSSTAT 1
  3353. EOF
  3354.  
  3355.   fi
  3356. fi
  3357.  
  3358. if test -z "$list_mounted_fs"; then
  3359.   # AIX.
  3360.   echo $ac_n "checking for mntctl function and struct vmount""... $ac_c" 1>&6
  3361.   if eval "test \"`echo '$''{'fu_cv_sys_mounted_vmount'+set}'`\" = set"; then
  3362.   echo $ac_n "(cached) $ac_c" 1>&6
  3363. else
  3364.   cat > conftest.$ac_ext <<EOF
  3365. #line 3366 "configure"
  3366. #include "confdefs.h"
  3367. #include <fshelp.h>
  3368. EOF
  3369. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3370. { (eval echo configure:3371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3371. ac_err=`grep -v '^ *+' conftest.out`
  3372. if test -z "$ac_err"; then
  3373.   rm -rf conftest*
  3374.   fu_cv_sys_mounted_vmount=yes
  3375. else
  3376.   echo "$ac_err" >&5
  3377.   rm -rf conftest*
  3378.   fu_cv_sys_mounted_vmount=no
  3379. fi
  3380. rm -f conftest*
  3381. fi
  3382.  
  3383.   echo "$ac_t""$fu_cv_sys_mounted_vmount" 1>&6
  3384.   if test $fu_cv_sys_mounted_vmount = yes; then
  3385.     list_mounted_fs=found
  3386.     cat >> confdefs.h <<\EOF
  3387. #define MOUNTED_VMOUNT 1
  3388. EOF
  3389.  
  3390.   fi
  3391. fi
  3392.  
  3393. if test -z "$list_mounted_fs"; then
  3394.   # SVR3
  3395.   echo $ac_n "checking for FIXME existence of three headers""... $ac_c" 1>&6
  3396.   if eval "test \"`echo '$''{'fu_cv_sys_mounted_fread_fstyp'+set}'`\" = set"; then
  3397.   echo $ac_n "(cached) $ac_c" 1>&6
  3398. else
  3399.   cat > conftest.$ac_ext <<EOF
  3400. #line 3401 "configure"
  3401. #include "confdefs.h"
  3402.  
  3403. #include <sys/statfs.h>
  3404. #include <sys/fstyp.h>
  3405. #include <mnttab.h>
  3406. EOF
  3407. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3408. { (eval echo configure:3409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3409. ac_err=`grep -v '^ *+' conftest.out`
  3410. if test -z "$ac_err"; then
  3411.   rm -rf conftest*
  3412.   fu_cv_sys_mounted_fread_fstyp=yes
  3413. else
  3414.   echo "$ac_err" >&5
  3415.   rm -rf conftest*
  3416.   fu_cv_sys_mounted_fread_fstyp=no
  3417. fi
  3418. rm -f conftest*
  3419. fi
  3420.  
  3421.   echo "$ac_t""$fu_cv_sys_mounted_fread_fstyp" 1>&6
  3422.   if test $fu_cv_sys_mounted_fread_fstyp = yes; then
  3423.     list_mounted_fs=found
  3424.     cat >> confdefs.h <<\EOF
  3425. #define MOUNTED_FREAD_FSTYP 1
  3426. EOF
  3427.  
  3428.   fi
  3429. fi
  3430.  
  3431. if test -z "$list_mounted_fs"; then
  3432.   # 4.4BSD and DEC OSF/1.
  3433.   echo $ac_n "checking for getmntinfo function""... $ac_c" 1>&6
  3434.   if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntinfo'+set}'`\" = set"; then
  3435.   echo $ac_n "(cached) $ac_c" 1>&6
  3436. else
  3437.   
  3438.       ok=
  3439.       if test $ac_cv_func_getmntinfo = yes; then
  3440.     cat > conftest.$ac_ext <<EOF
  3441. #line 3442 "configure"
  3442. #include "confdefs.h"
  3443. #include <sys/mount.h>
  3444. EOF
  3445. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3446.   egrep "f_type;" >/dev/null 2>&1; then
  3447.   rm -rf conftest*
  3448.   ok=yes
  3449. fi
  3450. rm -f conftest*
  3451.  
  3452.       fi
  3453.       test -n "$ok" \
  3454.       && fu_cv_sys_mounted_getmntinfo=yes \
  3455.       || fu_cv_sys_mounted_getmntinfo=no
  3456.     
  3457. fi
  3458.  
  3459.   echo "$ac_t""$fu_cv_sys_mounted_getmntinfo" 1>&6
  3460.   if test $fu_cv_sys_mounted_getmntinfo = yes; then
  3461.     list_mounted_fs=found
  3462.     cat >> confdefs.h <<\EOF
  3463. #define MOUNTED_GETMNTINFO 1
  3464. EOF
  3465.  
  3466.   fi
  3467. fi
  3468.  
  3469. # FIXME: add a test for netbsd-1.1 here
  3470.  
  3471. if test -z "$list_mounted_fs"; then
  3472.   # Ultrix
  3473.   echo $ac_n "checking for getmnt function""... $ac_c" 1>&6
  3474.   if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmnt'+set}'`\" = set"; then
  3475.   echo $ac_n "(cached) $ac_c" 1>&6
  3476. else
  3477.   cat > conftest.$ac_ext <<EOF
  3478. #line 3479 "configure"
  3479. #include "confdefs.h"
  3480.  
  3481. #include <sys/fs_types.h>
  3482. #include <sys/mount.h>
  3483. EOF
  3484. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3485. { (eval echo configure:3486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3486. ac_err=`grep -v '^ *+' conftest.out`
  3487. if test -z "$ac_err"; then
  3488.   rm -rf conftest*
  3489.   fu_cv_sys_mounted_getmnt=yes
  3490. else
  3491.   echo "$ac_err" >&5
  3492.   rm -rf conftest*
  3493.   fu_cv_sys_mounted_getmnt=no
  3494. fi
  3495. rm -f conftest*
  3496. fi
  3497.  
  3498.   echo "$ac_t""$fu_cv_sys_mounted_getmnt" 1>&6
  3499.   if test $fu_cv_sys_mounted_getmnt = yes; then
  3500.     list_mounted_fs=found
  3501.     cat >> confdefs.h <<\EOF
  3502. #define MOUNTED_GETMNT 1
  3503. EOF
  3504.  
  3505.   fi
  3506. fi
  3507.  
  3508. if test -z "$list_mounted_fs"; then
  3509.   # SVR2
  3510.   echo $ac_n "checking whether it is possible to resort to fread on /etc/mnttab""... $ac_c" 1>&6
  3511.   if eval "test \"`echo '$''{'fu_cv_sys_mounted_fread'+set}'`\" = set"; then
  3512.   echo $ac_n "(cached) $ac_c" 1>&6
  3513. else
  3514.   cat > conftest.$ac_ext <<EOF
  3515. #line 3516 "configure"
  3516. #include "confdefs.h"
  3517. #include <mnttab.h>
  3518. EOF
  3519. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3520. { (eval echo configure:3521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3521. ac_err=`grep -v '^ *+' conftest.out`
  3522. if test -z "$ac_err"; then
  3523.   rm -rf conftest*
  3524.   fu_cv_sys_mounted_fread=yes
  3525. else
  3526.   echo "$ac_err" >&5
  3527.   rm -rf conftest*
  3528.   fu_cv_sys_mounted_fread=no
  3529. fi
  3530. rm -f conftest*
  3531. fi
  3532.  
  3533.   echo "$ac_t""$fu_cv_sys_mounted_fread" 1>&6
  3534.   if test $fu_cv_sys_mounted_fread = yes; then
  3535.     list_mounted_fs=found
  3536.     cat >> confdefs.h <<\EOF
  3537. #define MOUNTED_FREAD 1
  3538. EOF
  3539.  
  3540.   fi
  3541. fi
  3542.  
  3543. if test -z "$list_mounted_fs"; then
  3544.   { echo "configure: error: could not determine how to read list of mounted filesystems" 1>&2; exit 1; }
  3545.   # FIXME -- no need to abort building the whole package
  3546.   # Can't build mountlist.c or anything that needs its functions
  3547. fi
  3548.  
  3549. echo "checking how to get filesystem space usage" 1>&6
  3550. space=no
  3551.  
  3552. # Here we'll compromise a little (and perform only the link test)
  3553. # since it seems there are no variants of the statvfs function.
  3554. if test $space = no; then
  3555.   # SVR4
  3556.   for ac_func in statvfs
  3557. do
  3558. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3559. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3560.   echo $ac_n "(cached) $ac_c" 1>&6
  3561. else
  3562.   cat > conftest.$ac_ext <<EOF
  3563. #line 3564 "configure"
  3564. #include "confdefs.h"
  3565. /* System header to define __stub macros and hopefully few prototypes,
  3566.     which can conflict with char $ac_func(); below.  */
  3567. #include <assert.h>
  3568. /* Override any gcc2 internal prototype to avoid an error.  */
  3569. /* We use char because int might match the return type of a gcc2
  3570.     builtin and then its argument prototype would still apply.  */
  3571. char $ac_func();
  3572.  
  3573. int main() { return 0; }
  3574. int t() {
  3575.  
  3576. /* The GNU C library defines this for functions which it implements
  3577.     to always fail with ENOSYS.  Some functions are actually named
  3578.     something starting with __ and the normal name is an alias.  */
  3579. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3580. choke me
  3581. #else
  3582. $ac_func();
  3583. #endif
  3584.  
  3585. ; return 0; }
  3586. EOF
  3587. if { (eval echo configure:3588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3588.   rm -rf conftest*
  3589.   eval "ac_cv_func_$ac_func=yes"
  3590. else
  3591.   rm -rf conftest*
  3592.   eval "ac_cv_func_$ac_func=no"
  3593. fi
  3594. rm -f conftest*
  3595.  
  3596. fi
  3597. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3598.   echo "$ac_t""yes" 1>&6
  3599.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3600.   cat >> confdefs.h <<EOF
  3601. #define $ac_tr_func 1
  3602. EOF
  3603.  
  3604. else
  3605.   echo "$ac_t""no" 1>&6
  3606. fi
  3607. done
  3608.  
  3609.   if test $ac_cv_func_statvfs = yes; then
  3610.     space=yes
  3611.     cat >> confdefs.h <<\EOF
  3612. #define STAT_STATVFS 1
  3613. EOF
  3614.  
  3615.   fi
  3616. fi
  3617.  
  3618. if test $space = no; then
  3619.   # DEC Alpha running OSF/1
  3620.   echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
  3621.   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
  3622.   echo $ac_n "(cached) $ac_c" 1>&6
  3623. else
  3624.   if test "$cross_compiling" = yes; then
  3625.   fu_cv_sys_stat_statfs3_osf1=no
  3626. else
  3627. cat > conftest.$ac_ext <<EOF
  3628. #line 3629 "configure"
  3629. #include "confdefs.h"
  3630.  
  3631. #include <sys/param.h>
  3632. #include <sys/types.h>
  3633. #include <sys/mount.h>
  3634.   main ()
  3635.   {
  3636.     struct statfs fsd;
  3637.     fsd.f_fsize = 0;
  3638.     exit (statfs (".", &fsd, sizeof (struct statfs)));
  3639.   }
  3640. EOF
  3641. { (eval echo configure:3642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  3642. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  3643.   fu_cv_sys_stat_statfs3_osf1=yes
  3644. else
  3645.   fu_cv_sys_stat_statfs3_osf1=no
  3646. fi
  3647. fi
  3648. rm -fr conftest*
  3649. fi
  3650.  
  3651.   echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
  3652.   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
  3653.     space=yes
  3654.     cat >> confdefs.h <<\EOF
  3655. #define STAT_STATFS3_OSF1 1
  3656. EOF
  3657.  
  3658.   fi
  3659. fi
  3660.  
  3661. if test $space = no; then
  3662. # AIX
  3663.   echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
  3664.   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
  3665.   echo $ac_n "(cached) $ac_c" 1>&6
  3666. else
  3667.   if test "$cross_compiling" = yes; then
  3668.   fu_cv_sys_stat_statfs2_bsize=no
  3669. else
  3670. cat > conftest.$ac_ext <<EOF
  3671. #line 3672 "configure"
  3672. #include "confdefs.h"
  3673.  
  3674. #ifdef HAVE_SYS_PARAM_H
  3675. #include <sys/param.h>
  3676. #endif
  3677. #ifdef HAVE_SYS_MOUNT_H
  3678. #include <sys/mount.h>
  3679. #endif
  3680. #ifdef HAVE_SYS_VFS_H
  3681. #include <sys/vfs.h>
  3682. #endif
  3683.   main ()
  3684.   {
  3685.   struct statfs fsd;
  3686.   fsd.f_bsize = 0;
  3687.   exit (statfs (".", &fsd));
  3688.   }
  3689. EOF
  3690. { (eval echo configure:3691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  3691. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  3692.   fu_cv_sys_stat_statfs2_bsize=yes
  3693. else
  3694.   fu_cv_sys_stat_statfs2_bsize=no
  3695. fi
  3696. fi
  3697. rm -fr conftest*
  3698. fi
  3699.  
  3700.   echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
  3701.   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
  3702.     space=yes
  3703.     cat >> confdefs.h <<\EOF
  3704. #define STAT_STATFS2_BSIZE 1
  3705. EOF
  3706.  
  3707.   fi
  3708. fi
  3709.  
  3710. if test $space = no; then
  3711. # SVR3
  3712.   echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
  3713.   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
  3714.   echo $ac_n "(cached) $ac_c" 1>&6
  3715. else
  3716.   if test "$cross_compiling" = yes; then
  3717.   fu_cv_sys_stat_statfs4=no
  3718. else
  3719. cat > conftest.$ac_ext <<EOF
  3720. #line 3721 "configure"
  3721. #include "confdefs.h"
  3722. #include <sys/types.h>
  3723. #include <sys/statfs.h>
  3724.   main ()
  3725.   {
  3726.   struct statfs fsd;
  3727.   exit (statfs (".", &fsd, sizeof fsd, 0));
  3728.   }
  3729. EOF
  3730. { (eval echo configure:3731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  3731. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  3732.   fu_cv_sys_stat_statfs4=yes
  3733. else
  3734.   fu_cv_sys_stat_statfs4=no
  3735. fi
  3736. fi
  3737. rm -fr conftest*
  3738. fi
  3739.  
  3740.   echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
  3741.   if test $fu_cv_sys_stat_statfs4 = yes; then
  3742.     space=yes
  3743.     cat >> confdefs.h <<\EOF
  3744. #define STAT_STATFS4 1
  3745. EOF
  3746.  
  3747.   fi
  3748. fi
  3749.  
  3750. if test $space = no; then
  3751. # 4.4BSD and NetBSD
  3752.   echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
  3753.   if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
  3754.   echo $ac_n "(cached) $ac_c" 1>&6
  3755. else
  3756.   if test "$cross_compiling" = yes; then
  3757.   fu_cv_sys_stat_statfs2_fsize=no
  3758. else
  3759. cat > conftest.$ac_ext <<EOF
  3760. #line 3761 "configure"
  3761. #include "confdefs.h"
  3762. #include <sys/types.h>
  3763. #ifdef HAVE_SYS_PARAM_H
  3764. #include <sys/param.h>
  3765. #endif
  3766. #ifdef HAVE_SYS_MOUNT_H
  3767. #include <sys/mount.h>
  3768. #endif
  3769.   main ()
  3770.   {
  3771.   struct statfs fsd;
  3772.   fsd.f_fsize = 0;
  3773.   exit (statfs (".", &fsd));
  3774.   }
  3775. EOF
  3776. { (eval echo configure:3777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  3777. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  3778.   fu_cv_sys_stat_statfs2_fsize=yes
  3779. else
  3780.   fu_cv_sys_stat_statfs2_fsize=no
  3781. fi
  3782. fi
  3783. rm -fr conftest*
  3784. fi
  3785.  
  3786.   echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
  3787.   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
  3788.     space=yes
  3789.     cat >> confdefs.h <<\EOF
  3790. #define STAT_STATFS2_FSIZE 1
  3791. EOF
  3792.  
  3793.   fi
  3794. fi
  3795.  
  3796. if test $space = no; then
  3797.   # Ultrix
  3798.   echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
  3799.   if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
  3800.   echo $ac_n "(cached) $ac_c" 1>&6
  3801. else
  3802.   if test "$cross_compiling" = yes; then
  3803.   fu_cv_sys_stat_fs_data=no
  3804. else
  3805. cat > conftest.$ac_ext <<EOF
  3806. #line 3807 "configure"
  3807. #include "confdefs.h"
  3808. #include <sys/types.h>
  3809. #ifdef HAVE_SYS_PARAM_H
  3810. #include <sys/param.h>
  3811. #endif
  3812. #ifdef HAVE_SYS_MOUNT_H
  3813. #include <sys/mount.h>
  3814. #endif
  3815. #ifdef HAVE_SYS_FS_TYPES_H
  3816. #include <sys/fs_types.h>
  3817. #endif
  3818.   main ()
  3819.   {
  3820.   struct fs_data fsd;
  3821.   /* Ultrix's statfs returns 1 for success,
  3822.      0 for not mounted, -1 for failure.  */
  3823.   exit (statfs (".", &fsd) != 1);
  3824.   }
  3825. EOF
  3826. { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  3827. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  3828.   fu_cv_sys_stat_fs_data=yes
  3829. else
  3830.   fu_cv_sys_stat_fs_data=no
  3831. fi
  3832. fi
  3833. rm -fr conftest*
  3834. fi
  3835.  
  3836.   echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
  3837.   if test $fu_cv_sys_stat_fs_data = yes; then
  3838.     space=yes
  3839.     cat >> confdefs.h <<\EOF
  3840. #define STAT_STATFS2_FS_DATA 1
  3841. EOF
  3842.  
  3843.   fi
  3844. fi
  3845.  
  3846. if test $space = no; then
  3847. # SVR2
  3848. cat > conftest.$ac_ext <<EOF
  3849. #line 3850 "configure"
  3850. #include "confdefs.h"
  3851. #include <sys/filsys.h>
  3852. EOF
  3853. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3854. { (eval echo configure:3855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3855. ac_err=`grep -v '^ *+' conftest.out`
  3856. if test -z "$ac_err"; then
  3857.   rm -rf conftest*
  3858.   cat >> confdefs.h <<\EOF
  3859. #define STAT_READ_FILSYS 1
  3860. EOF
  3861.  space=yes
  3862. else
  3863.   echo "$ac_err" >&5
  3864. fi
  3865. rm -f conftest*
  3866. fi
  3867.  
  3868. if test -n "$list_mounted_fs" && test $space != no; then
  3869.   DF_PROG="df"
  3870.   LIBOBJS="$LIBOBJS fsusage.o"
  3871.   LIBOBJS="$LIBOBJS mountlist.o"
  3872. fi
  3873.  
  3874. for ac_func in ftruncate
  3875. do
  3876. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3877. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3878.   echo $ac_n "(cached) $ac_c" 1>&6
  3879. else
  3880.   cat > conftest.$ac_ext <<EOF
  3881. #line 3882 "configure"
  3882. #include "confdefs.h"
  3883. /* System header to define __stub macros and hopefully few prototypes,
  3884.     which can conflict with char $ac_func(); below.  */
  3885. #include <assert.h>
  3886. /* Override any gcc2 internal prototype to avoid an error.  */
  3887. /* We use char because int might match the return type of a gcc2
  3888.     builtin and then its argument prototype would still apply.  */
  3889. char $ac_func();
  3890.  
  3891. int main() { return 0; }
  3892. int t() {
  3893.  
  3894. /* The GNU C library defines this for functions which it implements
  3895.     to always fail with ENOSYS.  Some functions are actually named
  3896.     something starting with __ and the normal name is an alias.  */
  3897. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3898. choke me
  3899. #else
  3900. $ac_func();
  3901. #endif
  3902.  
  3903. ; return 0; }
  3904. EOF
  3905. if { (eval echo configure:3906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3906.   rm -rf conftest*
  3907.   eval "ac_cv_func_$ac_func=yes"
  3908. else
  3909.   rm -rf conftest*
  3910.   eval "ac_cv_func_$ac_func=no"
  3911. fi
  3912. rm -f conftest*
  3913.  
  3914. fi
  3915. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3916.   echo "$ac_t""yes" 1>&6
  3917.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3918.   cat >> confdefs.h <<EOF
  3919. #define $ac_tr_func 1
  3920. EOF
  3921.  
  3922. else
  3923.   echo "$ac_t""no" 1>&6
  3924. ftruncate_missing=yes
  3925. fi
  3926. done
  3927.  
  3928.  
  3929. if test "$ftruncate_missing" = yes; then
  3930.   echo $ac_n "checking fcntl emulation of ftruncate""... $ac_c" 1>&6
  3931.   if eval "test \"`echo '$''{'fu_cv_sys_ftruncate_emulation'+set}'`\" = set"; then
  3932.   echo $ac_n "(cached) $ac_c" 1>&6
  3933. else
  3934.   cat > conftest.$ac_ext <<EOF
  3935. #line 3936 "configure"
  3936. #include "confdefs.h"
  3937.  
  3938. #include <sys/types.h>
  3939. #include <fcntl.h>
  3940. int main() { return 0; }
  3941. int t() {
  3942.  
  3943. #if !defined(F_CHSIZE) && !defined(F_FREESP)
  3944. chsize();
  3945. #endif
  3946.  
  3947. ; return 0; }
  3948. EOF
  3949. if { (eval echo configure:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3950.   rm -rf conftest*
  3951.   fu_cv_sys_ftruncate_emulation=yes
  3952. else
  3953.   rm -rf conftest*
  3954.   fu_cv_sys_ftruncate_emulation=no
  3955. fi
  3956. rm -f conftest*
  3957.  
  3958. fi
  3959.  
  3960.   echo "$ac_t""$fu_cv_sys_ftruncate_emulation" 1>&6
  3961.   if test $fu_cv_sys_ftruncate_emulation = yes; then
  3962.     LIBOBJS="$LIBOBJS ftruncate.o"
  3963.   fi
  3964. fi
  3965.  
  3966. case "$LIBOBJS" in
  3967. *rename.o*)
  3968.   MVDIR_PROG="mvdir"
  3969.   ;;
  3970. esac
  3971.  
  3972. # Check for SunOS statfs brokenness wrt partitions 2GB and larger.
  3973. # If <sys/vfs.h> exists and struct statfs has a member named f_spare,
  3974. # enable the work-around code in fsusage.c.
  3975. echo $ac_n "checking for statfs that truncates block counts""... $ac_c" 1>&6
  3976. if eval "test \"`echo '$''{'fu_cv_sys_truncating_statfs'+set}'`\" = set"; then
  3977.   echo $ac_n "(cached) $ac_c" 1>&6
  3978. else
  3979.   cat > conftest.$ac_ext <<EOF
  3980. #line 3981 "configure"
  3981. #include "confdefs.h"
  3982.  
  3983. #include <sys/types.h>
  3984. #include <sys/vfs.h>
  3985. int main() { return 0; }
  3986. int t() {
  3987. struct statfs t; long c = *(t.f_spare);
  3988. ; return 0; }
  3989. EOF
  3990. if { (eval echo configure:3991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3991.   rm -rf conftest*
  3992.   fu_cv_sys_truncating_statfs=yes
  3993. else
  3994.   rm -rf conftest*
  3995.   fu_cv_sys_truncating_statfs=no
  3996. fi
  3997. rm -f conftest*
  3998.  
  3999. fi
  4000.  
  4001. if test $fu_cv_sys_truncating_statfs = yes; then
  4002.   cat >> confdefs.h <<\EOF
  4003. #define STATFS_TRUNCATES_BLOCK_COUNTS 1
  4004. EOF
  4005.  
  4006. fi
  4007. echo "$ac_t""$fu_cv_sys_truncating_statfs" 1>&6
  4008.  
  4009. # If we don't yet have getgroups, see if it's in -lbsd.
  4010. # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
  4011. echo $ac_n "checking for getgroups""... $ac_c" 1>&6
  4012. if eval "test \"`echo '$''{'ac_cv_func_getgroups'+set}'`\" = set"; then
  4013.   echo $ac_n "(cached) $ac_c" 1>&6
  4014. else
  4015.   cat > conftest.$ac_ext <<EOF
  4016. #line 4017 "configure"
  4017. #include "confdefs.h"
  4018. /* System header to define __stub macros and hopefully few prototypes,
  4019.     which can conflict with char getgroups(); below.  */
  4020. #include <assert.h>
  4021. /* Override any gcc2 internal prototype to avoid an error.  */
  4022. /* We use char because int might match the return type of a gcc2
  4023.     builtin and then its argument prototype would still apply.  */
  4024. char getgroups();
  4025.  
  4026. int main() { return 0; }
  4027. int t() {
  4028.  
  4029. /* The GNU C library defines this for functions which it implements
  4030.     to always fail with ENOSYS.  Some functions are actually named
  4031.     something starting with __ and the normal name is an alias.  */
  4032. #if defined (__stub_getgroups) || defined (__stub___getgroups)
  4033. choke me
  4034. #else
  4035. getgroups();
  4036. #endif
  4037.  
  4038. ; return 0; }
  4039. EOF
  4040. if { (eval echo configure:4041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4041.   rm -rf conftest*
  4042.   eval "ac_cv_func_getgroups=yes"
  4043. else
  4044.   rm -rf conftest*
  4045.   eval "ac_cv_func_getgroups=no"
  4046. fi
  4047. rm -f conftest*
  4048.  
  4049. fi
  4050. if eval "test \"`echo '$ac_cv_func_'getgroups`\" = yes"; then
  4051.   echo "$ac_t""yes" 1>&6
  4052.   :
  4053. else
  4054.   echo "$ac_t""no" 1>&6
  4055. echo $ac_n "checking for -lbsd""... $ac_c" 1>&6
  4056. ac_lib_var=`echo bsd'_'getgroups | tr './+\055' '__p_'`
  4057. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4058.   echo $ac_n "(cached) $ac_c" 1>&6
  4059. else
  4060.   ac_save_LIBS="$LIBS"
  4061. LIBS="-lbsd  $LIBS"
  4062. cat > conftest.$ac_ext <<EOF
  4063. #line 4064 "configure"
  4064. #include "confdefs.h"
  4065. /* Override any gcc2 internal prototype to avoid an error.  */
  4066. /* We use char because int might match the return type of a gcc2
  4067.     builtin and then its argument prototype would still apply.  */
  4068. char getgroups();
  4069.  
  4070. int main() { return 0; }
  4071. int t() {
  4072. getgroups()
  4073. ; return 0; }
  4074. EOF
  4075. if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4076.   rm -rf conftest*
  4077.   eval "ac_cv_lib_$ac_lib_var=yes"
  4078. else
  4079.   rm -rf conftest*
  4080.   eval "ac_cv_lib_$ac_lib_var=no"
  4081. fi
  4082. rm -f conftest*
  4083. LIBS="$ac_save_LIBS"
  4084.  
  4085. fi
  4086. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4087.   echo "$ac_t""yes" 1>&6
  4088.     ac_tr_lib=HAVE_LIB`echo bsd | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4089.   cat >> confdefs.h <<EOF
  4090. #define $ac_tr_lib 1
  4091. EOF
  4092.  
  4093.   LIBS="-lbsd $LIBS"
  4094.  
  4095. else
  4096.   echo "$ac_t""no" 1>&6
  4097. fi
  4098.  
  4099. fi
  4100.  
  4101.  
  4102. # Check for libypsec.a on Dolphin M88K machines.
  4103. echo $ac_n "checking for -lypsec""... $ac_c" 1>&6
  4104. ac_lib_var=`echo ypsec'_'main | tr './+\055' '__p_'`
  4105. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4106.   echo $ac_n "(cached) $ac_c" 1>&6
  4107. else
  4108.   ac_save_LIBS="$LIBS"
  4109. LIBS="-lypsec  $LIBS"
  4110. cat > conftest.$ac_ext <<EOF
  4111. #line 4112 "configure"
  4112. #include "confdefs.h"
  4113.  
  4114. int main() { return 0; }
  4115. int t() {
  4116. main()
  4117. ; return 0; }
  4118. EOF
  4119. if { (eval echo configure:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4120.   rm -rf conftest*
  4121.   eval "ac_cv_lib_$ac_lib_var=yes"
  4122. else
  4123.   rm -rf conftest*
  4124.   eval "ac_cv_lib_$ac_lib_var=no"
  4125. fi
  4126. rm -f conftest*
  4127. LIBS="$ac_save_LIBS"
  4128.  
  4129. fi
  4130. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4131.   echo "$ac_t""yes" 1>&6
  4132.     ac_tr_lib=HAVE_LIB`echo ypsec | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4133.   cat >> confdefs.h <<EOF
  4134. #define $ac_tr_lib 1
  4135. EOF
  4136.  
  4137.   LIBS="-lypsec $LIBS"
  4138.  
  4139. else
  4140.   echo "$ac_t""no" 1>&6
  4141. fi
  4142.  
  4143.  
  4144. # m88k running dgux 5.4 needs this
  4145. echo $ac_n "checking for -lldgc""... $ac_c" 1>&6
  4146. ac_lib_var=`echo ldgc'_'main | tr './+\055' '__p_'`
  4147. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4148.   echo $ac_n "(cached) $ac_c" 1>&6
  4149. else
  4150.   ac_save_LIBS="$LIBS"
  4151. LIBS="-lldgc  $LIBS"
  4152. cat > conftest.$ac_ext <<EOF
  4153. #line 4154 "configure"
  4154. #include "confdefs.h"
  4155.  
  4156. int main() { return 0; }
  4157. int t() {
  4158. main()
  4159. ; return 0; }
  4160. EOF
  4161. if { (eval echo configure:4162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4162.   rm -rf conftest*
  4163.   eval "ac_cv_lib_$ac_lib_var=yes"
  4164. else
  4165.   rm -rf conftest*
  4166.   eval "ac_cv_lib_$ac_lib_var=no"
  4167. fi
  4168. rm -f conftest*
  4169. LIBS="$ac_save_LIBS"
  4170.  
  4171. fi
  4172. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4173.   echo "$ac_t""yes" 1>&6
  4174.     ac_tr_lib=HAVE_LIB`echo ldgc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4175.   cat >> confdefs.h <<EOF
  4176. #define $ac_tr_lib 1
  4177. EOF
  4178.  
  4179.   LIBS="-lldgc $LIBS"
  4180.  
  4181. else
  4182.   echo "$ac_t""no" 1>&6
  4183. fi
  4184.  
  4185.  
  4186. echo "checking for AFS" 1>&6
  4187. test -d /afs && cat >> confdefs.h <<\EOF
  4188. #define AFS 1
  4189. EOF
  4190.  
  4191.  
  4192. echo $ac_n "checking for inline""... $ac_c" 1>&6
  4193. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  4194.   echo $ac_n "(cached) $ac_c" 1>&6
  4195. else
  4196.   ac_cv_c_inline=no
  4197. for ac_kw in inline __inline__ __inline; do
  4198.   cat > conftest.$ac_ext <<EOF
  4199. #line 4200 "configure"
  4200. #include "confdefs.h"
  4201.  
  4202. int main() { return 0; }
  4203. int t() {
  4204. } $ac_kw foo() {
  4205. ; return 0; }
  4206. EOF
  4207. if { (eval echo configure:4208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4208.   rm -rf conftest*
  4209.   ac_cv_c_inline=$ac_kw; break
  4210. fi
  4211. rm -f conftest*
  4212.  
  4213. done
  4214.  
  4215. fi
  4216.  
  4217. echo "$ac_t""$ac_cv_c_inline" 1>&6
  4218. case "$ac_cv_c_inline" in
  4219.   inline | yes) ;;
  4220.   no) cat >> confdefs.h <<\EOF
  4221. #define inline 
  4222. EOF
  4223.  ;;
  4224.   *)  cat >> confdefs.h <<EOF
  4225. #define inline $ac_cv_c_inline
  4226. EOF
  4227.  ;;
  4228. esac
  4229.  
  4230. for ac_func in valloc getpagesize
  4231. do
  4232. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4233. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4234.   echo $ac_n "(cached) $ac_c" 1>&6
  4235. else
  4236.   cat > conftest.$ac_ext <<EOF
  4237. #line 4238 "configure"
  4238. #include "confdefs.h"
  4239. /* System header to define __stub macros and hopefully few prototypes,
  4240.     which can conflict with char $ac_func(); below.  */
  4241. #include <assert.h>
  4242. /* Override any gcc2 internal prototype to avoid an error.  */
  4243. /* We use char because int might match the return type of a gcc2
  4244.     builtin and then its argument prototype would still apply.  */
  4245. char $ac_func();
  4246.  
  4247. int main() { return 0; }
  4248. int t() {
  4249.  
  4250. /* The GNU C library defines this for functions which it implements
  4251.     to always fail with ENOSYS.  Some functions are actually named
  4252.     something starting with __ and the normal name is an alias.  */
  4253. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4254. choke me
  4255. #else
  4256. $ac_func();
  4257. #endif
  4258.  
  4259. ; return 0; }
  4260. EOF
  4261. if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4262.   rm -rf conftest*
  4263.   eval "ac_cv_func_$ac_func=yes"
  4264. else
  4265.   rm -rf conftest*
  4266.   eval "ac_cv_func_$ac_func=no"
  4267. fi
  4268. rm -f conftest*
  4269.  
  4270. fi
  4271. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4272.   echo "$ac_t""yes" 1>&6
  4273.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4274.   cat >> confdefs.h <<EOF
  4275. #define $ac_tr_func 1
  4276. EOF
  4277.  
  4278. else
  4279.   echo "$ac_t""no" 1>&6
  4280. fi
  4281. done
  4282.  
  4283. echo $ac_n "checking for working mmap""... $ac_c" 1>&6
  4284. if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then
  4285.   echo $ac_n "(cached) $ac_c" 1>&6
  4286. else
  4287.   if test "$cross_compiling" = yes; then
  4288.   ac_cv_func_mmap=no
  4289. else
  4290. cat > conftest.$ac_ext <<EOF
  4291. #line 4292 "configure"
  4292. #include "confdefs.h"
  4293.  
  4294. /* Thanks to Mike Haertel and Jim Avera for this test. */
  4295. #include <sys/types.h>
  4296. #include <fcntl.h>
  4297. #include <sys/mman.h>
  4298.  
  4299. #ifndef HAVE_GETPAGESIZE
  4300. # include <sys/param.h>
  4301. # ifdef EXEC_PAGESIZE
  4302. #  define getpagesize() EXEC_PAGESIZE
  4303. # else
  4304. #  ifdef NBPG
  4305. #   define getpagesize() NBPG * CLSIZE
  4306. #   ifndef CLSIZE
  4307. #    define CLSIZE 1
  4308. #   endif
  4309. #  else
  4310. #   ifdef NBPC
  4311. #    define getpagesize() NBPC
  4312. #   else
  4313. #    define getpagesize() PAGESIZE /* SVR4 */
  4314. #   endif
  4315. #  endif
  4316. # endif
  4317. #endif
  4318.  
  4319. #ifndef HAVE_VALLOC
  4320. # define valloc malloc
  4321. #endif
  4322.  
  4323. #ifdef __cplusplus
  4324. extern "C" { void *valloc(unsigned), *malloc(unsigned); }
  4325. #else
  4326. char *valloc(), *malloc();
  4327. #endif
  4328.  
  4329. int
  4330. main()
  4331. {
  4332.   char *buf1, *buf2, *buf3;
  4333.   int i = getpagesize(), j;
  4334.   int i2 = i * 2;
  4335.   int fd;
  4336.  
  4337.   buf1 = (char *)valloc(i2);
  4338.   buf2 = (char *)valloc(i);
  4339.   buf3 = (char *)malloc(i2);
  4340.   for (j = 0; j < i2; ++j)
  4341.     *(buf1 + j) = rand();
  4342.   fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
  4343.   write(fd, buf1, i2);
  4344.   mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
  4345.   for (j = 0; j < i; ++j)
  4346.     if (*(buf1 + j) != *(buf2 + j))
  4347.       exit(1);
  4348.   lseek(fd, (long)i, 0);
  4349.   read(fd, buf2, i); /* read into mapped memory -- file should not change */
  4350.   /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */
  4351.   lseek(fd, (long)0, 0);
  4352.   read(fd, buf3, i2);
  4353.   for (j = 0; j < i2; ++j)
  4354.     if (*(buf1 + j) != *(buf3 + j))
  4355.       exit(1);
  4356.   exit(0);
  4357. }
  4358.  
  4359. EOF
  4360. { (eval echo configure:4361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  4361. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  4362.   ac_cv_func_mmap=yes
  4363. else
  4364.   ac_cv_func_mmap=no
  4365. fi
  4366. fi
  4367. rm -fr conftest*
  4368. fi
  4369.  
  4370. echo "$ac_t""$ac_cv_func_mmap" 1>&6
  4371. if test $ac_cv_func_mmap = yes; then
  4372.   cat >> confdefs.h <<\EOF
  4373. #define HAVE_MMAP 1
  4374. EOF
  4375.  
  4376. fi
  4377.  
  4378.                               
  4379.    for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
  4380. unistd.h values.h
  4381. do
  4382. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  4383. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4384. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4385.   echo $ac_n "(cached) $ac_c" 1>&6
  4386. else
  4387.   cat > conftest.$ac_ext <<EOF
  4388. #line 4389 "configure"
  4389. #include "confdefs.h"
  4390. #include <$ac_hdr>
  4391. EOF
  4392. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4393. { (eval echo configure:4394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4394. ac_err=`grep -v '^ *+' conftest.out`
  4395. if test -z "$ac_err"; then
  4396.   rm -rf conftest*
  4397.   eval "ac_cv_header_$ac_safe=yes"
  4398. else
  4399.   echo "$ac_err" >&5
  4400.   rm -rf conftest*
  4401.   eval "ac_cv_header_$ac_safe=no"
  4402. fi
  4403. rm -f conftest*
  4404. fi
  4405. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4406.   echo "$ac_t""yes" 1>&6
  4407.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  4408.   cat >> confdefs.h <<EOF
  4409. #define $ac_tr_hdr 1
  4410. EOF
  4411.  
  4412. else
  4413.   echo "$ac_t""no" 1>&6
  4414. fi
  4415. done
  4416.  
  4417.    for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
  4418. __argz_count __argz_stringify __argz_next
  4419. do
  4420. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4421. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4422.   echo $ac_n "(cached) $ac_c" 1>&6
  4423. else
  4424.   cat > conftest.$ac_ext <<EOF
  4425. #line 4426 "configure"
  4426. #include "confdefs.h"
  4427. /* System header to define __stub macros and hopefully few prototypes,
  4428.     which can conflict with char $ac_func(); below.  */
  4429. #include <assert.h>
  4430. /* Override any gcc2 internal prototype to avoid an error.  */
  4431. /* We use char because int might match the return type of a gcc2
  4432.     builtin and then its argument prototype would still apply.  */
  4433. char $ac_func();
  4434.  
  4435. int main() { return 0; }
  4436. int t() {
  4437.  
  4438. /* The GNU C library defines this for functions which it implements
  4439.     to always fail with ENOSYS.  Some functions are actually named
  4440.     something starting with __ and the normal name is an alias.  */
  4441. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4442. choke me
  4443. #else
  4444. $ac_func();
  4445. #endif
  4446.  
  4447. ; return 0; }
  4448. EOF
  4449. if { (eval echo configure:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4450.   rm -rf conftest*
  4451.   eval "ac_cv_func_$ac_func=yes"
  4452. else
  4453.   rm -rf conftest*
  4454.   eval "ac_cv_func_$ac_func=no"
  4455. fi
  4456. rm -f conftest*
  4457.  
  4458. fi
  4459. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4460.   echo "$ac_t""yes" 1>&6
  4461.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4462.   cat >> confdefs.h <<EOF
  4463. #define $ac_tr_func 1
  4464. EOF
  4465.  
  4466. else
  4467.   echo "$ac_t""no" 1>&6
  4468. fi
  4469. done
  4470.  
  4471.  
  4472.    if test "${ac_cv_func_stpcpy+set}" != "set"; then
  4473.      for ac_func in stpcpy
  4474. do
  4475. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4476. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4477.   echo $ac_n "(cached) $ac_c" 1>&6
  4478. else
  4479.   cat > conftest.$ac_ext <<EOF
  4480. #line 4481 "configure"
  4481. #include "confdefs.h"
  4482. /* System header to define __stub macros and hopefully few prototypes,
  4483.     which can conflict with char $ac_func(); below.  */
  4484. #include <assert.h>
  4485. /* Override any gcc2 internal prototype to avoid an error.  */
  4486. /* We use char because int might match the return type of a gcc2
  4487.     builtin and then its argument prototype would still apply.  */
  4488. char $ac_func();
  4489.  
  4490. int main() { return 0; }
  4491. int t() {
  4492.  
  4493. /* The GNU C library defines this for functions which it implements
  4494.     to always fail with ENOSYS.  Some functions are actually named
  4495.     something starting with __ and the normal name is an alias.  */
  4496. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4497. choke me
  4498. #else
  4499. $ac_func();
  4500. #endif
  4501.  
  4502. ; return 0; }
  4503. EOF
  4504. if { (eval echo configure:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4505.   rm -rf conftest*
  4506.   eval "ac_cv_func_$ac_func=yes"
  4507. else
  4508.   rm -rf conftest*
  4509.   eval "ac_cv_func_$ac_func=no"
  4510. fi
  4511. rm -f conftest*
  4512.  
  4513. fi
  4514. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4515.   echo "$ac_t""yes" 1>&6
  4516.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4517.   cat >> confdefs.h <<EOF
  4518. #define $ac_tr_func 1
  4519. EOF
  4520.  
  4521. else
  4522.   echo "$ac_t""no" 1>&6
  4523. fi
  4524. done
  4525.  
  4526.    fi
  4527.    if test "${ac_cv_func_stpcpy}" = "yes"; then
  4528.      cat >> confdefs.h <<\EOF
  4529. #define HAVE_STPCPY 1
  4530. EOF
  4531.  
  4532.    fi
  4533.  
  4534.    if test $ac_cv_header_locale_h = yes; then
  4535.     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
  4536. if eval "test \"`echo '$''{'ud_cv_val_LC_MESSAGES'+set}'`\" = set"; then
  4537.   echo $ac_n "(cached) $ac_c" 1>&6
  4538. else
  4539.   cat > conftest.$ac_ext <<EOF
  4540. #line 4541 "configure"
  4541. #include "confdefs.h"
  4542. #include <locale.h>
  4543. int main() { return 0; }
  4544. int t() {
  4545. return LC_MESSAGES
  4546. ; return 0; }
  4547. EOF
  4548. if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4549.   rm -rf conftest*
  4550.   ud_cv_val_LC_MESSAGES=yes
  4551. else
  4552.   rm -rf conftest*
  4553.   ud_cv_val_LC_MESSAGES=no
  4554. fi
  4555. rm -f conftest*
  4556.  
  4557. fi
  4558.  
  4559. echo "$ac_t""$ud_cv_val_LC_MESSAGES" 1>&6
  4560.     if test $ud_cv_val_LC_MESSAGES = yes; then
  4561.       cat >> confdefs.h <<\EOF
  4562. #define HAVE_LC_MESSAGES 1
  4563. EOF
  4564.  
  4565.     fi
  4566.   fi
  4567.    echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
  4568.         # Check whether --enable-nls or --disable-nls was given.
  4569. if test "${enable_nls+set}" = set; then
  4570.   enableval="$enable_nls"
  4571.   USE_NLS=$enableval
  4572. else
  4573.   USE_NLS=yes
  4574. fi
  4575.  
  4576.     echo "$ac_t""$USE_NLS" 1>&6
  4577.     
  4578.  
  4579.     USE_INCLUDED_LIBINTL=no
  4580.  
  4581.         if test "$USE_NLS" = "yes"; then
  4582.       cat >> confdefs.h <<\EOF
  4583. #define ENABLE_NLS 1
  4584. EOF
  4585.  
  4586.       echo $ac_n "checking for explicitly using GNU gettext""... $ac_c" 1>&6
  4587.       # Check whether --with-included-gettext or --without-included-gettext was given.
  4588. if test "${with_included_gettext+set}" = set; then
  4589.   withval="$with_included_gettext"
  4590.   nls_cv_force_use_gnu_gettext=$withval
  4591. else
  4592.   nls_cv_force_use_gnu_gettext=no
  4593. fi
  4594.  
  4595.       echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
  4596.  
  4597.       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  4598.       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  4599.                                 nls_cv_header_intl=
  4600.     nls_cv_header_libgt=
  4601.     CATOBJEXT=NONE
  4602.  
  4603.     ac_safe=`echo "libintl.h" | tr './\055' '___'`
  4604. echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
  4605. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4606.   echo $ac_n "(cached) $ac_c" 1>&6
  4607. else
  4608.   cat > conftest.$ac_ext <<EOF
  4609. #line 4610 "configure"
  4610. #include "confdefs.h"
  4611. #include <libintl.h>
  4612. EOF
  4613. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4614. { (eval echo configure:4615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4615. ac_err=`grep -v '^ *+' conftest.out`
  4616. if test -z "$ac_err"; then
  4617.   rm -rf conftest*
  4618.   eval "ac_cv_header_$ac_safe=yes"
  4619. else
  4620.   echo "$ac_err" >&5
  4621.   rm -rf conftest*
  4622.   eval "ac_cv_header_$ac_safe=no"
  4623. fi
  4624. rm -f conftest*
  4625. fi
  4626. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4627.   echo "$ac_t""yes" 1>&6
  4628.   echo $ac_n "checking for -lintl""... $ac_c" 1>&6
  4629. ac_lib_var=`echo intl'_'bindtextdomain | tr './+\055' '__p_'`
  4630. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4631.   echo $ac_n "(cached) $ac_c" 1>&6
  4632. else
  4633.   ac_save_LIBS="$LIBS"
  4634. LIBS="-lintl  $LIBS"
  4635. cat > conftest.$ac_ext <<EOF
  4636. #line 4637 "configure"
  4637. #include "confdefs.h"
  4638. /* Override any gcc2 internal prototype to avoid an error.  */
  4639. /* We use char because int might match the return type of a gcc2
  4640.     builtin and then its argument prototype would still apply.  */
  4641. char bindtextdomain();
  4642.  
  4643. int main() { return 0; }
  4644. int t() {
  4645. bindtextdomain()
  4646. ; return 0; }
  4647. EOF
  4648. if { (eval echo configure:4649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4649.   rm -rf conftest*
  4650.   eval "ac_cv_lib_$ac_lib_var=yes"
  4651. else
  4652.   rm -rf conftest*
  4653.   eval "ac_cv_lib_$ac_lib_var=no"
  4654. fi
  4655. rm -f conftest*
  4656. LIBS="$ac_save_LIBS"
  4657.  
  4658. fi
  4659. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4660.   echo "$ac_t""yes" 1>&6
  4661.     ac_tr_lib=HAVE_LIB`echo intl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4662.   cat >> confdefs.h <<EOF
  4663. #define $ac_tr_lib 1
  4664. EOF
  4665.  
  4666.   LIBS="-lintl $LIBS"
  4667.  
  4668. else
  4669.   echo "$ac_t""no" 1>&6
  4670. fi
  4671.  
  4672.        echo $ac_n "checking for gettext""... $ac_c" 1>&6
  4673. if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
  4674.   echo $ac_n "(cached) $ac_c" 1>&6
  4675. else
  4676.   cat > conftest.$ac_ext <<EOF
  4677. #line 4678 "configure"
  4678. #include "confdefs.h"
  4679. /* System header to define __stub macros and hopefully few prototypes,
  4680.     which can conflict with char gettext(); below.  */
  4681. #include <assert.h>
  4682. /* Override any gcc2 internal prototype to avoid an error.  */
  4683. /* We use char because int might match the return type of a gcc2
  4684.     builtin and then its argument prototype would still apply.  */
  4685. char gettext();
  4686.  
  4687. int main() { return 0; }
  4688. int t() {
  4689.  
  4690. /* The GNU C library defines this for functions which it implements
  4691.     to always fail with ENOSYS.  Some functions are actually named
  4692.     something starting with __ and the normal name is an alias.  */
  4693. #if defined (__stub_gettext) || defined (__stub___gettext)
  4694. choke me
  4695. #else
  4696. gettext();
  4697. #endif
  4698.  
  4699. ; return 0; }
  4700. EOF
  4701. if { (eval echo configure:4702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4702.   rm -rf conftest*
  4703.   eval "ac_cv_func_gettext=yes"
  4704. else
  4705.   rm -rf conftest*
  4706.   eval "ac_cv_func_gettext=no"
  4707. fi
  4708. rm -f conftest*
  4709.  
  4710. fi
  4711. if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
  4712.   echo "$ac_t""yes" 1>&6
  4713.   cat >> confdefs.h <<\EOF
  4714. #define HAVE_GETTEXT 1
  4715. EOF
  4716.  
  4717.           # Extract the first word of "msgfmt", so it can be a program name with args.
  4718. set dummy msgfmt; ac_word=$2
  4719. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4720. if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  4721.   echo $ac_n "(cached) $ac_c" 1>&6
  4722. else
  4723.   case "$MSGFMT" in
  4724.   /*)
  4725.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  4726.   ;;
  4727.   *)
  4728.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  4729.   for ac_dir in $PATH; do
  4730.     test -z "$ac_dir" && ac_dir=.
  4731.     if test -f $ac_dir/$ac_word; then
  4732.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  4733.     ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  4734.     break
  4735.       fi
  4736.     fi
  4737.   done
  4738.   IFS="$ac_save_ifs"
  4739.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  4740.   ;;
  4741. esac
  4742. fi
  4743. MSGFMT="$ac_cv_path_MSGFMT"
  4744. if test -n "$MSGFMT"; then
  4745.   echo "$ac_t""$MSGFMT" 1>&6
  4746. else
  4747.   echo "$ac_t""no" 1>&6
  4748. fi
  4749.           if test "$MSGFMT" != "no"; then
  4750.         for ac_func in dcgettext
  4751. do
  4752. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4753. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4754.   echo $ac_n "(cached) $ac_c" 1>&6
  4755. else
  4756.   cat > conftest.$ac_ext <<EOF
  4757. #line 4758 "configure"
  4758. #include "confdefs.h"
  4759. /* System header to define __stub macros and hopefully few prototypes,
  4760.     which can conflict with char $ac_func(); below.  */
  4761. #include <assert.h>
  4762. /* Override any gcc2 internal prototype to avoid an error.  */
  4763. /* We use char because int might match the return type of a gcc2
  4764.     builtin and then its argument prototype would still apply.  */
  4765. char $ac_func();
  4766.  
  4767. int main() { return 0; }
  4768. int t() {
  4769.  
  4770. /* The GNU C library defines this for functions which it implements
  4771.     to always fail with ENOSYS.  Some functions are actually named
  4772.     something starting with __ and the normal name is an alias.  */
  4773. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4774. choke me
  4775. #else
  4776. $ac_func();
  4777. #endif
  4778.  
  4779. ; return 0; }
  4780. EOF
  4781. if { (eval echo configure:4782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4782.   rm -rf conftest*
  4783.   eval "ac_cv_func_$ac_func=yes"
  4784. else
  4785.   rm -rf conftest*
  4786.   eval "ac_cv_func_$ac_func=no"
  4787. fi
  4788. rm -f conftest*
  4789.  
  4790. fi
  4791. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4792.   echo "$ac_t""yes" 1>&6
  4793.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4794.   cat >> confdefs.h <<EOF
  4795. #define $ac_tr_func 1
  4796. EOF
  4797.  
  4798. else
  4799.   echo "$ac_t""no" 1>&6
  4800. fi
  4801. done
  4802.  
  4803.         # Extract the first word of "gmsgfmt", so it can be a program name with args.
  4804. set dummy gmsgfmt; ac_word=$2
  4805. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4806. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  4807.   echo $ac_n "(cached) $ac_c" 1>&6
  4808. else
  4809.   case "$GMSGFMT" in
  4810.   /*)
  4811.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  4812.   ;;
  4813.   *)
  4814.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  4815.   for ac_dir in $PATH; do
  4816.     test -z "$ac_dir" && ac_dir=.
  4817.     if test -f $ac_dir/$ac_word; then
  4818.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  4819.       break
  4820.     fi
  4821.   done
  4822.   IFS="$ac_save_ifs"
  4823.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  4824.   ;;
  4825. esac
  4826. fi
  4827. GMSGFMT="$ac_cv_path_GMSGFMT"
  4828. if test -n "$GMSGFMT"; then
  4829.   echo "$ac_t""$GMSGFMT" 1>&6
  4830. else
  4831.   echo "$ac_t""no" 1>&6
  4832. fi
  4833.  
  4834.         # Extract the first word of "xgettext", so it can be a program name with args.
  4835. set dummy xgettext; ac_word=$2
  4836. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4837. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  4838.   echo $ac_n "(cached) $ac_c" 1>&6
  4839. else
  4840.   case "$XGETTEXT" in
  4841.   /*)
  4842.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  4843.   ;;
  4844.   *)
  4845.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  4846.   for ac_dir in $PATH; do
  4847.     test -z "$ac_dir" && ac_dir=.
  4848.     if test -f $ac_dir/$ac_word; then
  4849.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  4850.     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  4851.     break
  4852.       fi
  4853.     fi
  4854.   done
  4855.   IFS="$ac_save_ifs"
  4856.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  4857.   ;;
  4858. esac
  4859. fi
  4860. XGETTEXT="$ac_cv_path_XGETTEXT"
  4861. if test -n "$XGETTEXT"; then
  4862.   echo "$ac_t""$XGETTEXT" 1>&6
  4863. else
  4864.   echo "$ac_t""no" 1>&6
  4865. fi
  4866.  
  4867.         cat > conftest.$ac_ext <<EOF
  4868. #line 4869 "configure"
  4869. #include "confdefs.h"
  4870.  
  4871. int main() { return 0; }
  4872. int t() {
  4873. extern int _nl_msg_cat_cntr;
  4874.                    return _nl_msg_cat_cntr
  4875. ; return 0; }
  4876. EOF
  4877. if { (eval echo configure:4878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4878.   rm -rf conftest*
  4879.   CATOBJEXT=.gmo
  4880.            DATADIRNAME=share
  4881. else
  4882.   rm -rf conftest*
  4883.   CATOBJEXT=.mo
  4884.            DATADIRNAME=lib
  4885. fi
  4886. rm -f conftest*
  4887.  
  4888.         INSTOBJEXT=.mo
  4889.           fi
  4890. else
  4891.   echo "$ac_t""no" 1>&6
  4892. fi
  4893.  
  4894. else
  4895.   echo "$ac_t""no" 1>&6
  4896. fi
  4897.  
  4898.  
  4899.         if test "$CATOBJEXT" = "NONE"; then
  4900.       echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
  4901.       # Check whether --with-catgets or --without-catgets was given.
  4902. if test "${with_catgets+set}" = set; then
  4903.   withval="$with_catgets"
  4904.   nls_cv_use_catgets=$withval
  4905. else
  4906.   nls_cv_use_catgets=no
  4907. fi
  4908.  
  4909.       echo "$ac_t""$nls_cv_use_catgets" 1>&6
  4910.  
  4911.       if test "$nls_cv_use_catgets" = "yes"; then
  4912.                 echo $ac_n "checking for -li""... $ac_c" 1>&6
  4913. ac_lib_var=`echo i'_'main | tr './+\055' '__p_'`
  4914. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4915.   echo $ac_n "(cached) $ac_c" 1>&6
  4916. else
  4917.   ac_save_LIBS="$LIBS"
  4918. LIBS="-li  $LIBS"
  4919. cat > conftest.$ac_ext <<EOF
  4920. #line 4921 "configure"
  4921. #include "confdefs.h"
  4922.  
  4923. int main() { return 0; }
  4924. int t() {
  4925. main()
  4926. ; return 0; }
  4927. EOF
  4928. if { (eval echo configure:4929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4929.   rm -rf conftest*
  4930.   eval "ac_cv_lib_$ac_lib_var=yes"
  4931. else
  4932.   rm -rf conftest*
  4933.   eval "ac_cv_lib_$ac_lib_var=no"
  4934. fi
  4935. rm -f conftest*
  4936. LIBS="$ac_save_LIBS"
  4937.  
  4938. fi
  4939. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4940.   echo "$ac_t""yes" 1>&6
  4941.     ac_tr_lib=HAVE_LIB`echo i | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4942.   cat >> confdefs.h <<EOF
  4943. #define $ac_tr_lib 1
  4944. EOF
  4945.  
  4946.   LIBS="-li $LIBS"
  4947.  
  4948. else
  4949.   echo "$ac_t""no" 1>&6
  4950. fi
  4951.  
  4952.         echo $ac_n "checking for catgets""... $ac_c" 1>&6
  4953. if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
  4954.   echo $ac_n "(cached) $ac_c" 1>&6
  4955. else
  4956.   cat > conftest.$ac_ext <<EOF
  4957. #line 4958 "configure"
  4958. #include "confdefs.h"
  4959. /* System header to define __stub macros and hopefully few prototypes,
  4960.     which can conflict with char catgets(); below.  */
  4961. #include <assert.h>
  4962. /* Override any gcc2 internal prototype to avoid an error.  */
  4963. /* We use char because int might match the return type of a gcc2
  4964.     builtin and then its argument prototype would still apply.  */
  4965. char catgets();
  4966.  
  4967. int main() { return 0; }
  4968. int t() {
  4969.  
  4970. /* The GNU C library defines this for functions which it implements
  4971.     to always fail with ENOSYS.  Some functions are actually named
  4972.     something starting with __ and the normal name is an alias.  */
  4973. #if defined (__stub_catgets) || defined (__stub___catgets)
  4974. choke me
  4975. #else
  4976. catgets();
  4977. #endif
  4978.  
  4979. ; return 0; }
  4980. EOF
  4981. if { (eval echo configure:4982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  4982.   rm -rf conftest*
  4983.   eval "ac_cv_func_catgets=yes"
  4984. else
  4985.   rm -rf conftest*
  4986.   eval "ac_cv_func_catgets=no"
  4987. fi
  4988. rm -f conftest*
  4989.  
  4990. fi
  4991. if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
  4992.   echo "$ac_t""yes" 1>&6
  4993.   cat >> confdefs.h <<\EOF
  4994. #define HAVE_CATGETS 1
  4995. EOF
  4996.  
  4997.            INTLOBJS="\$(CATOBJS)"
  4998.            # Extract the first word of "gencat", so it can be a program name with args.
  4999. set dummy gencat; ac_word=$2
  5000. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5001. if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
  5002.   echo $ac_n "(cached) $ac_c" 1>&6
  5003. else
  5004.   case "$GENCAT" in
  5005.   /*)
  5006.   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
  5007.   ;;
  5008.   *)
  5009.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  5010.   for ac_dir in $PATH; do
  5011.     test -z "$ac_dir" && ac_dir=.
  5012.     if test -f $ac_dir/$ac_word; then
  5013.       ac_cv_path_GENCAT="$ac_dir/$ac_word"
  5014.       break
  5015.     fi
  5016.   done
  5017.   IFS="$ac_save_ifs"
  5018.   test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
  5019.   ;;
  5020. esac
  5021. fi
  5022. GENCAT="$ac_cv_path_GENCAT"
  5023. if test -n "$GENCAT"; then
  5024.   echo "$ac_t""$GENCAT" 1>&6
  5025. else
  5026.   echo "$ac_t""no" 1>&6
  5027. fi
  5028.            if test "$GENCAT" != "no"; then
  5029.          # Extract the first word of "gmsgfmt", so it can be a program name with args.
  5030. set dummy gmsgfmt; ac_word=$2
  5031. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5032. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  5033.   echo $ac_n "(cached) $ac_c" 1>&6
  5034. else
  5035.   case "$GMSGFMT" in
  5036.   /*)
  5037.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  5038.   ;;
  5039.   *)
  5040.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  5041.   for ac_dir in $PATH; do
  5042.     test -z "$ac_dir" && ac_dir=.
  5043.     if test -f $ac_dir/$ac_word; then
  5044.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  5045.       break
  5046.     fi
  5047.   done
  5048.   IFS="$ac_save_ifs"
  5049.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
  5050.   ;;
  5051. esac
  5052. fi
  5053. GMSGFMT="$ac_cv_path_GMSGFMT"
  5054. if test -n "$GMSGFMT"; then
  5055.   echo "$ac_t""$GMSGFMT" 1>&6
  5056. else
  5057.   echo "$ac_t""no" 1>&6
  5058. fi
  5059.  
  5060.          if test "$GMSGFMT" = "no"; then
  5061.            # Extract the first word of "msgfmt", so it can be a program name with args.
  5062. set dummy msgfmt; ac_word=$2
  5063. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5064. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  5065.   echo $ac_n "(cached) $ac_c" 1>&6
  5066. else
  5067.   case "$GMSGFMT" in
  5068.   /*)
  5069.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  5070.   ;;
  5071.   *)
  5072.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  5073.   for ac_dir in $PATH; do
  5074.     test -z "$ac_dir" && ac_dir=.
  5075.     if test -f $ac_dir/$ac_word; then
  5076.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  5077.     ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  5078.     break
  5079.       fi
  5080.     fi
  5081.   done
  5082.   IFS="$ac_save_ifs"
  5083.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
  5084.   ;;
  5085. esac
  5086. fi
  5087. GMSGFMT="$ac_cv_path_GMSGFMT"
  5088. if test -n "$GMSGFMT"; then
  5089.   echo "$ac_t""$GMSGFMT" 1>&6
  5090. else
  5091.   echo "$ac_t""no" 1>&6
  5092. fi
  5093.  
  5094.          fi
  5095.          # Extract the first word of "xgettext", so it can be a program name with args.
  5096. set dummy xgettext; ac_word=$2
  5097. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5098. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  5099.   echo $ac_n "(cached) $ac_c" 1>&6
  5100. else
  5101.   case "$XGETTEXT" in
  5102.   /*)
  5103.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  5104.   ;;
  5105.   *)
  5106.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  5107.   for ac_dir in $PATH; do
  5108.     test -z "$ac_dir" && ac_dir=.
  5109.     if test -f $ac_dir/$ac_word; then
  5110.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  5111.     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  5112.     break
  5113.       fi
  5114.     fi
  5115.   done
  5116.   IFS="$ac_save_ifs"
  5117.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  5118.   ;;
  5119. esac
  5120. fi
  5121. XGETTEXT="$ac_cv_path_XGETTEXT"
  5122. if test -n "$XGETTEXT"; then
  5123.   echo "$ac_t""$XGETTEXT" 1>&6
  5124. else
  5125.   echo "$ac_t""no" 1>&6
  5126. fi
  5127.  
  5128.          USE_INCLUDED_LIBINTL=yes
  5129.          CATOBJEXT=.cat
  5130.          INSTOBJEXT=.cat
  5131.          DATADIRNAME=lib
  5132.          INTLDEPS="../intl/libintl.a"
  5133.          INTLLIBS=$INTLDEPS
  5134.          LIBS=`echo $LIBS | sed -e 's/-lintl//'`
  5135.          nls_cv_header_intl=intl/libintl.h
  5136.          nls_cv_header_libgt=intl/libgettext.h
  5137.            fi
  5138. else
  5139.   echo "$ac_t""no" 1>&6
  5140. fi
  5141.  
  5142.       fi
  5143.         fi
  5144.  
  5145.         if test "$CATOBJEXT" = "NONE"; then
  5146.                   nls_cv_use_gnu_gettext=yes
  5147.         fi
  5148.       fi
  5149.  
  5150.       if test "$nls_cv_use_gnu_gettext" = "yes"; then
  5151.                 INTLOBJS="\$(GETTOBJS)"
  5152.         # Extract the first word of "msgfmt", so it can be a program name with args.
  5153. set dummy msgfmt; ac_word=$2
  5154. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5155. if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  5156.   echo $ac_n "(cached) $ac_c" 1>&6
  5157. else
  5158.   case "$MSGFMT" in
  5159.   /*)
  5160.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  5161.   ;;
  5162.   *)
  5163.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  5164.   for ac_dir in $PATH; do
  5165.     test -z "$ac_dir" && ac_dir=.
  5166.     if test -f $ac_dir/$ac_word; then
  5167.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  5168.     ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  5169.     break
  5170.       fi
  5171.     fi
  5172.   done
  5173.   IFS="$ac_save_ifs"
  5174.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
  5175.   ;;
  5176. esac
  5177. fi
  5178. MSGFMT="$ac_cv_path_MSGFMT"
  5179. if test -n "$MSGFMT"; then
  5180.   echo "$ac_t""$MSGFMT" 1>&6
  5181. else
  5182.   echo "$ac_t""no" 1>&6
  5183. fi
  5184.  
  5185.         # Extract the first word of "gmsgfmt", so it can be a program name with args.
  5186. set dummy gmsgfmt; ac_word=$2
  5187. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5188. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  5189.   echo $ac_n "(cached) $ac_c" 1>&6
  5190. else
  5191.   case "$GMSGFMT" in
  5192.   /*)
  5193.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  5194.   ;;
  5195.   *)
  5196.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  5197.   for ac_dir in $PATH; do
  5198.     test -z "$ac_dir" && ac_dir=.
  5199.     if test -f $ac_dir/$ac_word; then
  5200.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  5201.       break
  5202.     fi
  5203.   done
  5204.   IFS="$ac_save_ifs"
  5205.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  5206.   ;;
  5207. esac
  5208. fi
  5209. GMSGFMT="$ac_cv_path_GMSGFMT"
  5210. if test -n "$GMSGFMT"; then
  5211.   echo "$ac_t""$GMSGFMT" 1>&6
  5212. else
  5213.   echo "$ac_t""no" 1>&6
  5214. fi
  5215.  
  5216.         # Extract the first word of "xgettext", so it can be a program name with args.
  5217. set dummy xgettext; ac_word=$2
  5218. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5219. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  5220.   echo $ac_n "(cached) $ac_c" 1>&6
  5221. else
  5222.   case "$XGETTEXT" in
  5223.   /*)
  5224.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  5225.   ;;
  5226.   *)
  5227.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  5228.   for ac_dir in $PATH; do
  5229.     test -z "$ac_dir" && ac_dir=.
  5230.     if test -f $ac_dir/$ac_word; then
  5231.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  5232.     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  5233.     break
  5234.       fi
  5235.     fi
  5236.   done
  5237.   IFS="$ac_save_ifs"
  5238.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  5239.   ;;
  5240. esac
  5241. fi
  5242. XGETTEXT="$ac_cv_path_XGETTEXT"
  5243. if test -n "$XGETTEXT"; then
  5244.   echo "$ac_t""$XGETTEXT" 1>&6
  5245. else
  5246.   echo "$ac_t""no" 1>&6
  5247. fi
  5248.  
  5249.         
  5250.     USE_INCLUDED_LIBINTL=yes
  5251.         CATOBJEXT=.gmo
  5252.         INSTOBJEXT=.mo
  5253.         DATADIRNAME=share
  5254.     INTLDEPS="../intl/libintl.a"
  5255.     INTLLIBS=$INTLDEPS
  5256.     LIBS=`echo $LIBS | sed -e 's/-lintl//'`
  5257.         nls_cv_header_intl=intl/libintl.h
  5258.         nls_cv_header_libgt=intl/libgettext.h
  5259.       fi
  5260.  
  5261.             if test "$XGETTEXT" != ":"; then
  5262.             if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
  5263.       : ;
  5264.     else
  5265.       echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
  5266.       XGETTEXT=":"
  5267.     fi
  5268.       fi
  5269.  
  5270.       # We need to process the po/ directory.
  5271.       POSUB=po
  5272.     else
  5273.       DATADIRNAME=share
  5274.       nls_cv_header_intl=intl/libintl.h
  5275.       nls_cv_header_libgt=intl/libgettext.h
  5276.     fi
  5277.  
  5278.     # If this is used in GNU gettext we have to set USE_NLS to `yes'
  5279.     # because some of the sources are only built for this goal.
  5280.     if test "$PACKAGE" = gettext; then
  5281.       USE_NLS=yes
  5282.       USE_INCLUDED_LIBINTL=yes
  5283.     fi
  5284.  
  5285.                 for lang in $ALL_LINGUAS; do
  5286.       GMOFILES="$GMOFILES $lang.gmo"
  5287.       POFILES="$POFILES $lang.po"
  5288.     done
  5289.  
  5290.         
  5291.     
  5292.     
  5293.     
  5294.     
  5295.     
  5296.     
  5297.     
  5298.     
  5299.     
  5300.     
  5301.   
  5302.  
  5303.    if test "x$CATOBJEXT" != "x"; then
  5304.      if test "x$ALL_LINGUAS" = "x"; then
  5305.        LINGUAS=
  5306.      else
  5307.        echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
  5308.        NEW_LINGUAS=
  5309.        for lang in ${LINGUAS=$ALL_LINGUAS}; do
  5310.          case "$ALL_LINGUAS" in
  5311.           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
  5312.          esac
  5313.        done
  5314.        LINGUAS=$NEW_LINGUAS
  5315.        echo "$ac_t""$LINGUAS" 1>&6
  5316.      fi
  5317.  
  5318.           if test -n "$LINGUAS"; then
  5319.        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
  5320.      fi
  5321.    fi
  5322.  
  5323.             test -d intl || mkdir intl
  5324.    if test "$CATOBJEXT" = ".cat"; then
  5325.      ac_safe=`echo "linux/version.h" | tr './\055' '___'`
  5326. echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
  5327. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5328.   echo $ac_n "(cached) $ac_c" 1>&6
  5329. else
  5330.   cat > conftest.$ac_ext <<EOF
  5331. #line 5332 "configure"
  5332. #include "confdefs.h"
  5333. #include <linux/version.h>
  5334. EOF
  5335. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5336. { (eval echo configure:5337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5337. ac_err=`grep -v '^ *+' conftest.out`
  5338. if test -z "$ac_err"; then
  5339.   rm -rf conftest*
  5340.   eval "ac_cv_header_$ac_safe=yes"
  5341. else
  5342.   echo "$ac_err" >&5
  5343.   rm -rf conftest*
  5344.   eval "ac_cv_header_$ac_safe=no"
  5345. fi
  5346. rm -f conftest*
  5347. fi
  5348. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5349.   echo "$ac_t""yes" 1>&6
  5350.   msgformat=linux
  5351. else
  5352.   echo "$ac_t""no" 1>&6
  5353. msgformat=xopen
  5354. fi
  5355.  
  5356.  
  5357.                sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
  5358.    fi
  5359.       sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
  5360.      $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
  5361.  
  5362.             if test "$PACKAGE" = "gettext"; then
  5363.      GT_NO="#NO#"
  5364.      GT_YES=
  5365.    else
  5366.      GT_NO=
  5367.      GT_YES="#YES#"
  5368.    fi
  5369.    
  5370.    
  5371.  
  5372.             MKINSTALLDIRS=
  5373.    if test $ac_aux_dir; then
  5374.      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
  5375.    fi
  5376.    if test -z $MKINSTALLDIRS; then
  5377.      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  5378.    fi
  5379.    
  5380.  
  5381.          test -d po || mkdir po
  5382.    if test "x$srcdir" != "x."; then
  5383.      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
  5384.        posrcprefix="$srcdir/"
  5385.      else
  5386.        posrcprefix="../$srcdir/"
  5387.      fi
  5388.    else
  5389.      posrcprefix="../"
  5390.    fi
  5391.    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,    $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  5392.     < $srcdir/po/POTFILES.in > po/POTFILES
  5393.   
  5394.  
  5395.  
  5396.  
  5397.  
  5398. trap '' 1 2 15
  5399. cat > confcache <<\EOF
  5400. # This file is a shell script that caches the results of configure
  5401. # tests run on this system so they can be shared between configure
  5402. # scripts and configure runs.  It is not useful on other systems.
  5403. # If it contains results you don't want to keep, you may remove or edit it.
  5404. #
  5405. # By default, configure uses ./config.cache as the cache file,
  5406. # creating it if it does not exist already.  You can give configure
  5407. # the --cache-file=FILE option to use a different cache file; that is
  5408. # what configure does when it calls configure scripts in
  5409. # subdirectories, so they share the cache.
  5410. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  5411. # config.status only pays attention to the cache file if you give it the
  5412. # --recheck option to rerun configure.
  5413. #
  5414. EOF
  5415. # Ultrix sh set writes to stderr and can't be redirected directly,
  5416. # and sets the high bit in the cache file unless we assign to the vars.
  5417. (set) 2>&1 |
  5418.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  5419.   >> confcache
  5420. if cmp -s $cache_file confcache; then
  5421.   :
  5422. else
  5423.   if test -w $cache_file; then
  5424.     echo "updating cache $cache_file"
  5425.     cat confcache > $cache_file
  5426.   else
  5427.     echo "not updating unwritable cache $cache_file"
  5428.   fi
  5429. fi
  5430. rm -f confcache
  5431.  
  5432. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  5433.  
  5434. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5435. # Let make expand exec_prefix.
  5436. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5437.  
  5438. # Any assignment to VPATH causes Sun make to only execute
  5439. # the first set of double-colon rules, so remove it if not needed.
  5440. # If there is a colon in the path, we need to keep it.
  5441. if test "x$srcdir" = x.; then
  5442.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  5443. fi
  5444.  
  5445. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  5446.  
  5447. DEFS=-DHAVE_CONFIG_H
  5448.  
  5449. # Without the "./", some shells look in PATH for config.status.
  5450. : ${CONFIG_STATUS=./config.status}
  5451.  
  5452. echo creating $CONFIG_STATUS
  5453. rm -f $CONFIG_STATUS
  5454. cat > $CONFIG_STATUS <<EOF
  5455. #! /bin/sh
  5456. # Generated automatically by configure.
  5457. # Run this file to recreate the current configuration.
  5458. # This directory was configured as follows,
  5459. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  5460. #
  5461. # $0 $ac_configure_args
  5462. #
  5463. # Compiler output produced by configure, useful for debugging
  5464. # configure, is in ./config.log if it exists.
  5465.  
  5466. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  5467. for ac_option
  5468. do
  5469.   case "\$ac_option" in
  5470.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5471.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  5472.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  5473.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  5474.     echo "$CONFIG_STATUS generated by autoconf version 2.10"
  5475.     exit 0 ;;
  5476.   -help | --help | --hel | --he | --h)
  5477.     echo "\$ac_cs_usage"; exit 0 ;;
  5478.   *) echo "\$ac_cs_usage"; exit 1 ;;
  5479.   esac
  5480. done
  5481.  
  5482. ac_given_srcdir=$srcdir
  5483. ac_given_INSTALL="$INSTALL"
  5484.  
  5485. trap 'rm -fr `echo "Makefile doc/Makefile intl/Makefile lib/Makefile man/Makefile \
  5486. po/Makefile.in src/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  5487. EOF
  5488. cat >> $CONFIG_STATUS <<EOF
  5489.  
  5490. # Protect against being on the right side of a sed subst in config.status.
  5491. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  5492.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  5493. $ac_vpsub
  5494. $extrasub
  5495. s%@CFLAGS@%$CFLAGS%g
  5496. s%@CPPFLAGS@%$CPPFLAGS%g
  5497. s%@CXXFLAGS@%$CXXFLAGS%g
  5498. s%@DEFS@%$DEFS%g
  5499. s%@LDFLAGS@%$LDFLAGS%g
  5500. s%@LIBS@%$LIBS%g
  5501. s%@exec_prefix@%$exec_prefix%g
  5502. s%@prefix@%$prefix%g
  5503. s%@program_transform_name@%$program_transform_name%g
  5504. s%@bindir@%$bindir%g
  5505. s%@sbindir@%$sbindir%g
  5506. s%@libexecdir@%$libexecdir%g
  5507. s%@datadir@%$datadir%g
  5508. s%@sysconfdir@%$sysconfdir%g
  5509. s%@sharedstatedir@%$sharedstatedir%g
  5510. s%@localstatedir@%$localstatedir%g
  5511. s%@libdir@%$libdir%g
  5512. s%@includedir@%$includedir%g
  5513. s%@oldincludedir@%$oldincludedir%g
  5514. s%@infodir@%$infodir%g
  5515. s%@mandir@%$mandir%g
  5516. s%@SET_MAKE@%$SET_MAKE%g
  5517. s%@PACKAGE@%$PACKAGE%g
  5518. s%@VERSION@%$VERSION%g
  5519. s%@PACKAGE_VERSION@%$PACKAGE_VERSION%g
  5520. s%@MAINT@%$MAINT%g
  5521. s%@README_ALPHA@%$README_ALPHA%g
  5522. s%@DF_PROG@%$DF_PROG%g
  5523. s%@MVDIR_PROG@%$MVDIR_PROG%g
  5524. s%@LN@%$LN%g
  5525. s%@MV@%$MV%g
  5526. s%@RM@%$RM%g
  5527. s%@PERL@%$PERL%g
  5528. s%@CC@%$CC%g
  5529. s%@CPP@%$CPP%g
  5530. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  5531. s%@INSTALL_DATA@%$INSTALL_DATA%g
  5532. s%@RANLIB@%$RANLIB%g
  5533. s%@YACC@%$YACC%g
  5534. s%@U@%$U%g
  5535. s%@ANSI2KNR@%$ANSI2KNR%g
  5536. s%@LIBOBJS@%$LIBOBJS%g
  5537. s%@ALLOCA@%$ALLOCA%g
  5538. s%@USE_NLS@%$USE_NLS%g
  5539. s%@MSGFMT@%$MSGFMT%g
  5540. s%@GMSGFMT@%$GMSGFMT%g
  5541. s%@XGETTEXT@%$XGETTEXT%g
  5542. s%@GENCAT@%$GENCAT%g
  5543. s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
  5544. s%@CATALOGS@%$CATALOGS%g
  5545. s%@CATOBJEXT@%$CATOBJEXT%g
  5546. s%@DATADIRNAME@%$DATADIRNAME%g
  5547. s%@GMOFILES@%$GMOFILES%g
  5548. s%@INSTOBJEXT@%$INSTOBJEXT%g
  5549. s%@INTLDEPS@%$INTLDEPS%g
  5550. s%@INTLLIBS@%$INTLLIBS%g
  5551. s%@INTLOBJS@%$INTLOBJS%g
  5552. s%@POFILES@%$POFILES%g
  5553. s%@POSUB@%$POSUB%g
  5554. s%@GT_NO@%$GT_NO%g
  5555. s%@GT_YES@%$GT_YES%g
  5556. s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
  5557.  
  5558. CEOF
  5559. EOF
  5560. cat >> $CONFIG_STATUS <<EOF
  5561.  
  5562. CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile intl/Makefile lib/Makefile man/Makefile \
  5563. po/Makefile.in src/Makefile"}
  5564. EOF
  5565. cat >> $CONFIG_STATUS <<\EOF
  5566. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  5567.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  5568.   case "$ac_file" in
  5569.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  5570.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  5571.   *) ac_file_in="${ac_file}.in" ;;
  5572.   esac
  5573.  
  5574.   # Adjust relative srcdir, etc. for subdirectories.
  5575.  
  5576.   # Remove last slash and all that follows it.  Not all systems have dirname.
  5577.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  5578.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  5579.     # The file is in a subdirectory.
  5580.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  5581.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  5582.     # A "../" for each directory in $ac_dir_suffix.
  5583.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  5584.   else
  5585.     ac_dir_suffix= ac_dots=
  5586.   fi
  5587.  
  5588.   case "$ac_given_srcdir" in
  5589.   .)  srcdir=.
  5590.       if test -z "$ac_dots"; then top_srcdir=.
  5591.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  5592.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  5593.   *) # Relative path.
  5594.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  5595.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  5596.   esac
  5597.  
  5598.   case "$ac_given_INSTALL" in
  5599.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  5600.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  5601.   esac
  5602.   echo creating "$ac_file"
  5603.   rm -f "$ac_file"
  5604.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  5605.   case "$ac_file" in
  5606.   *Makefile*) ac_comsub="1i\\
  5607. # $configure_input" ;;
  5608.   *) ac_comsub= ;;
  5609.   esac
  5610.   sed -e "$ac_comsub
  5611. s%@configure_input@%$configure_input%g
  5612. s%@srcdir@%$srcdir%g
  5613. s%@top_srcdir@%$top_srcdir%g
  5614. s%@INSTALL@%$INSTALL%g
  5615. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  5616. fi; done
  5617. rm -f conftest.subs
  5618.  
  5619. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  5620. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  5621. #
  5622. # ac_d sets the value in "#define NAME VALUE" lines.
  5623. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  5624. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  5625. ac_dC='\3'
  5626. ac_dD='%g'
  5627. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  5628. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  5629. ac_uB='\([     ]\)%\1#\2define\3'
  5630. ac_uC=' '
  5631. ac_uD='\4%g'
  5632. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  5633. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  5634. ac_eB='$%\1#\2define\3'
  5635. ac_eC=' '
  5636. ac_eD='%g'
  5637.  
  5638. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  5639. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  5640.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  5641.   case "$ac_file" in
  5642.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  5643.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  5644.   *) ac_file_in="${ac_file}.in" ;;
  5645.   esac
  5646.  
  5647.   echo creating $ac_file
  5648.  
  5649.   rm -f conftest.frag conftest.in conftest.out
  5650.   cp $ac_given_srcdir/$ac_file_in conftest.in
  5651.  
  5652. EOF
  5653.  
  5654. # Transform confdefs.h into a sed script conftest.vals that substitutes
  5655. # the proper values into config.h.in to produce config.h.  And first:
  5656. # Protect against being on the right side of a sed subst in config.status.
  5657. # Protect against being in an unquoted here document in config.status.
  5658. rm -f conftest.vals
  5659. cat > conftest.hdr <<\EOF
  5660. s/[\\&%]/\\&/g
  5661. s%[\\$`]%\\&%g
  5662. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  5663. s%ac_d%ac_u%gp
  5664. s%ac_u%ac_e%gp
  5665. EOF
  5666. sed -n -f conftest.hdr confdefs.h > conftest.vals
  5667. rm -f conftest.hdr
  5668.  
  5669. # This sed command replaces #undef with comments.  This is necessary, for
  5670. # example, in the case of _POSIX_SOURCE, which is predefined and required
  5671. # on some systems where configure will not decide to define it.
  5672. cat >> conftest.vals <<\EOF
  5673. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  5674. EOF
  5675.  
  5676. # Break up conftest.vals because some shells have a limit on
  5677. # the size of here documents, and old seds have small limits too.
  5678. # Maximum number of lines to put in a single here document.
  5679. ac_max_here_lines=12
  5680.  
  5681. rm -f conftest.tail
  5682. while :
  5683. do
  5684.   ac_lines=`grep -c . conftest.vals`
  5685.   # grep -c gives empty output for an empty file on some AIX systems.
  5686.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  5687.   # Write a limited-size here document to conftest.frag.
  5688.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  5689.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  5690.   echo 'CEOF
  5691.   sed -f conftest.frag conftest.in > conftest.out
  5692.   rm -f conftest.in
  5693.   mv conftest.out conftest.in
  5694. ' >> $CONFIG_STATUS
  5695.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  5696.   rm -f conftest.vals
  5697.   mv conftest.tail conftest.vals
  5698. done
  5699. rm -f conftest.vals
  5700.  
  5701. cat >> $CONFIG_STATUS <<\EOF
  5702.   rm -f conftest.frag conftest.h
  5703.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  5704.   cat conftest.in >> conftest.h
  5705.   rm -f conftest.in
  5706.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  5707.     echo "$ac_file is unchanged"
  5708.     rm -f conftest.h
  5709.   else
  5710.     # Remove last slash and all that follows it.  Not all systems have dirname.
  5711.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  5712.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  5713.       # The file is in a subdirectory.
  5714.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  5715.     fi
  5716.     rm -f $ac_file
  5717.     mv conftest.h $ac_file
  5718.   fi
  5719. fi; done
  5720.  
  5721. EOF
  5722.  
  5723. cat >> $CONFIG_STATUS <<EOF
  5724. ac_sources="$nls_cv_header_libgt lib/group-member.c"
  5725. ac_dests="$nls_cv_header_intl lib/group_member.c"
  5726. EOF
  5727.  
  5728. cat >> $CONFIG_STATUS <<\EOF
  5729. srcdir=$ac_given_srcdir
  5730. while test -n "$ac_sources"; do
  5731.   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  5732.   set $ac_sources; ac_source=$1; shift; ac_sources=$*
  5733.  
  5734.   echo "linking $srcdir/$ac_source to $ac_dest"
  5735.  
  5736.   if test ! -r $srcdir/$ac_source; then
  5737.     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
  5738.   fi
  5739.   rm -f $ac_dest
  5740.  
  5741.   # Make relative symlinks.
  5742.   # Remove last slash and all that follows it.  Not all systems have dirname.
  5743.   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
  5744.   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
  5745.     # The dest file is in a subdirectory.
  5746.     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
  5747.     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
  5748.     # A "../" for each directory in $ac_dest_dir_suffix.
  5749.     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
  5750.   else
  5751.     ac_dest_dir_suffix= ac_dots=
  5752.   fi
  5753.  
  5754.   case "$srcdir" in
  5755.   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
  5756.   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
  5757.   esac
  5758.  
  5759.   # Make a symlink if possible; otherwise try a hard link.
  5760.   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
  5761.     ln $srcdir/$ac_source $ac_dest; then :
  5762.   else
  5763.     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
  5764.   fi
  5765. done
  5766.  
  5767. sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
  5768. test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  5769. exit 0
  5770. EOF
  5771. chmod +x $CONFIG_STATUS
  5772. rm -fr confdefs* $ac_clean_files
  5773. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  5774.  
  5775.